When creating an Azure Cloud Service, you may want to enable HTTPS for testing prior to obtaining a security certificate from a certificate authority. To do this, you can generate a self-signed certificate. Note that since the certificate is self-signed, it will generate a security warning in the browser and is generally not suitable for production.
To install a certificate using the steps below, you will need the Visual Studio Developer Command Prompt to execute the commands. Microsoft now offers Visual Studio for free.
makecert -sky exchange -r -n "CN=" -pe -a sha1 -len 2048 -ss My ".cer"
certmgr.msc
Certificates
> Personal
> Certificates
All Tasks
, and then clicking Export
Export Private Key
page, ensure that you select Yes, export the private key
Include all certificates...
checkedFinish
the wizardCertificates
Store Location
as LocalMachine
and the StoreName
as My
Endpoints
HTTPS
in the name for clarity, select the protocol https
, select port 443
and select the SSL Certificate Name matching the one you just created in CertificatesYou should now be able to navigate to the URL of your application via HTTPS.