Converting K2 and SharePoint from HTTP to HTTPS

  • 24 February 2022
  • 0 replies
  • 61 views

Userlevel 5
Badge +20
 

Converting K2 and SharePoint from HTTP to HTTPS

kbt132960

PRODUCT
K2 blackpearl 4.6.11 to 4.7
BASED ON
K2 blackpearl 4.6.11
TAGS
Internet Information Services (IIS)
K2 Designer for SharePoint
On-premises
This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice. This article is not considered official documentation for K2 software and is provided "as is" with no warranties.
LEGACY/ARCHIVED CONTENT
This article has been archived, and/or refers to legacy products, components or features. The content in this article is offered "as is" and will no longer be updated. Archived content is provided for reference purposes only. This content does not infer that the product, component or feature is supported, or that the product, component or feature will continue to function as described herein.

Objective

The issue experienced occurred when converting K2 and SharePoint from HTTP to HTTPS.
After the changes have been made the worklist webpart was not loading as the certificate was not a trusted certificate. I was not sure where to bind the wildcard certificate for the app domain.

 

Image

 

 

 

Before You Begin

Obtain a wildcard certificate for the SharePoint site and K2 sites.

How-to Steps

 

1. Obtain a wildcard certificate for the SharePoint site and K2 sites. In my case the SharePoint URL is https://domain1.co.za and the K2 urls was https://k2.domain1.co.za.

 

ImageImage

 

 

In this case we obtained one wildcard certificate from Provider which is used for the SharePoint site and the K2 sites.

 

2. Obtain a wildcard certificate for the app domain (in my case *.domain2.co.za). Seeing that SharePoint handles the app redirect internally and our sites are all using host headers you need a blank SharePoint site running on HTTPS without a host header for the app redirect to function correctly.

 

3. The server needs to have 2 NIC’s each with a different IP address

 

 

Image

 

4. Create a DNS entry for the SharePoint site workflowsdev.domain1.co.za pointing to the IP address of the first NIC

 

5. Create a CNAME record for the app domain which in my case was dunlopappsdev.co.za. It is important that the appdomain only has one domain, and not subdomains as the SSL certificates doesn’t support subdomains. You cannot for example use the following url for the app domain appsdev..co.za as the url for the app would then be app-123456.appsdev..co.za which contains multiple domains, and would fail.

 

Image

 

Image

 

6. The CNAME record should also point to the second NIC on the SharePoint server. The reason for this is that you cannot bind 2 different SSL certificates on 2 different sites on the same IIS box running on the same port (443)

 

7. Now you can bind the *.domain1.co.za wildcard certificate to the domain2.co.za IIS site.

 

Image

 

8. Now you can bind the appdomain wildcard SSL certificate to the empty web application, but bind it only for the second NIC’s ip address

 

Image

 

9. Important to note that we created a self-signed certificate for the appdomain. In this case we needed to add the self-signed certificate to the client computers trusted certificates by means of a login script.

 

 


0 replies

Be the first to reply!

Reply