Create a SSL Certificate for an Azure WebApp

There are various methods for creating a certificate for use on Azure. I have found that using IIS manager is the easiest. You can install IIS Express on your workstation or access on a server.

  1. Open IIS and go to “Server Certificates”

server certs
2. Click Create Certificate Request…. and fill out the details

name
3. Set the bit length a click next

bit length
4. Save the request to a file.

req
5. Open the text file and copy the contents to the clipboard. Paste into to your favorite Certificate Authority.

6. Once you have received the certificate back from the CA double click to open it and go to Install Certificate….

install

Select Local Machine then Next
local
7. Launch MMC and open the Certificate Snap-In for the Local Computer

mmc
8. Go to Personal\Certificates, right click your certificate and go to Export….
export
Click Next and Yes, export the private key
yes

Leave the defaults and click next
PFX
Set a password and User or Group with access
security
Create a name for the file and click next then finish.

Our certificate should now be ready for use on Azure.

9. Open Azure Portal https://portal.azure.com/ and go to WebApps
webapps
10. Click on the WebApp you want to update and  go to Settings\Custom domains and SSL

11. Click Upload Certificates and  select the PFX File we just created. Enter the password and press Save

save
12. Finally we need to update the bindings to use the new cert

Bindings
Remember to click Save to finish!
Save2

To be on the safe side you can check your cert is working with one of the many free online tools

https://www.ssllabs.com/ssltest/
https://www.sslshopper.com/ssl-checker.html

For more info on creating certificates for Azure WebApps check out this link:

https://azure.microsoft.com/en-gb/documentation/articles/web-sites-configure-ssl-certificate/

 

Advertisements
Posted in Azure, Cloud, Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: