How to refresh an HTTPS certificate in Wyn

This article explains how to refresh an HTTPS certificate in Wyn
Usually this need arises in cases where the HTTPS certificate was not added correctly during set up or the certificate may have expired and it needs to be changed.

The steps below describe how to temporarily disable HTTPS, restore access over HTTP, and then reconfigure HTTPS correctly.

Back up and update wyn.conf

As a first step you need to back up the wyn.conf file.
Refer to the provided documentation for details on where to find the file and how to work with it.
After backing up wyn.conf, open the file and, within the <Server> node, locate the following section:

<BuiltInHttps>
  <EnableBuiltInHttps>true</EnableBuiltInHttps>
  <EnableHttpsDefaultPort>true</EnableHttpsDefaultPort>
  <Certificate>
    <Path>PATHONSERVERTOCERT</Path>
    <Password>PASSWORDFORCERT</Password>
  </Certificate>
</BuiltInHttps>

Change the value of <EnableBuiltInHttps> from true to false to temporarily disable HTTPS, then save the file.

Update the Identity Server URL

Next, update the Identity Server URL so Wyn can be accessed over HTTP.

Set it to localhost or the machine’s IP address using port 51980, for example:

<IdentityServerUrl>http://localhost:51980</IdentityServerUrl>

Save the file if you have not already done so.

Restart Wyn Services 

Restart the Wyn services so the configuration changes can take effect.

After the restart, Wyn should be accessible over HTTP using the local machine or IP address.

Reconfigure HTTPS

After getting Wyn running up go to the Admin Portal and add your HTTPS certificate as explained in the linked How To article.

Note: If the site does not load correctly, try accessing it in a private or incognito browser window to avoid issues caused by cached cookies.