Skip to content

Replacing the IIS Express certificate

An SSL certificate makes sure the connection between the browser and the Docuflair server is encrypted (HTTPS). Sometimes you have to replace the standard IIS Express certificate — where it has expired, for example, or where your environment calls for a certificate of its own.

In certain environments it can happen that the IIS Express SSL certificates have to be replaced. These instructions describe exactly how to go about it.

Open Windows PowerShell and run the following commands:

$cert = New-SelfSignedCertificate -DnsName "localhost" -CertStoreLocation "Cert:\LocalMachine\My" -NotAfter (Get-Date).AddYears(5)
$thumb = $cert.Thumbprint
netsh http delete sslcert ipport=0.0.0.0:443
netsh http add sslcert ipport=0.0.0.0:443 certhash=$thumb appid="{00112233-4455-6677-8899-AABBCCDDEEFF}"

The PowerShell commands for renewing the certificate

Last updated: