How to change certificate used by Cayosoft Guardian
Cayosoft Guardian creates its own self-signed certificate during installation. This article describes how to change this default certificate to a custom one using netsh commands for HTTP.
How to change the certificate in Cayosoft Guardian web portal
Open the Cayosoft Guardian web portal.
Expand Settings node.
Click the Service Settings.
Select Network Settings.
Click Properties.
On the General tab, click the edit icon next to the SSL certificate label.
Select a certificate and click Select.
Go back to Service Settings and press Restart service.
How to change the certificate with PowerShell
Run an elevated PowerShell ISE or PowerShell command prompt.
-
Run the following command to check if the port 443 already has a bound certificate:
Copynetsh http show sslcertIf the command above returned a record with
IP:port = 0.0.0.0:443, you need to delete the old certificate:Copynetsh http delete sslcert ipport=0.0.0.0:443 -
Bind the new certificate to 443 port:
Copynetsh http add sslcert ipport=0.0.0.0:443 certhash="<certificate thumbprint>" appid="{<application guid>}"
Replace <certificate thumbprint> with your custom certificate thumbprint found in the properties of the certificate. Replace <application guid> with the GUID of the bound application. You can use the same GUID that was returned by the netsh http show sslcert command. Refer to the following example:
netsh http add sslcert ipport=0.0.0.0:443 certhash="831C11EF1D8886A0B3D0A598
Comments
0 comments
Please sign in to leave a comment.