HTTPS

Quick & Easy

Run the following with administrative privileges.

This method shouldn't be used in a production environment as the certificates are self-signed. A more extensive write-up detailing how to use certificates signed by an authority will soon be posted.

To quickly add HTTPS support for RESTful Fish, execute the following:

powershell -Command "New-SelfSignedCertificate -DnsName \
localhost -CertStoreLocation cert:\LocalMachine\My \
-NotAfter (Get-Date).AddYears(10)"

Now execute the following:

Replace the value for certhash with the 'Thumbprint' outputted from "New-SelfSignedCertificate" above.

netsh http add sslcert hostnameport=localhost:1234 \
certhash=E55CA31A032FBAA85EC2D2041450F2D1F3B89CC7 \
appid={BE5F64AF-5FD0-4DF4-99A3-633C72B0F7EE} \
certstorename=MY

Last updated

Was this helpful?