InstallinXXXXX wildcard SSL certificate in Microsoft Azure Web Apps' class='c-post-hero__image lazyload' data-srcset=' /content/images/size/w380/2014/12/tomssl_background_nyc.jpg 380w, /content/images/size/w760/2014/12/tomssl_background_nyc.jpg 760w, /content/images/size/w1520/2014/12/tomssl_background_nyc.jpg 1520w' sizes='(min-width: 1200px) 759px, (min-width: 640px) 64.07vw, calc(100vw - 48px)' data-src='/content/images/size/w1520/2014/12/tomssl_background_nyc.jpg' width='760' height='500' >

Installin' or renewin' XXXXX wildcard SSL certificate in Microsoft Azure Web Apps

Tom Chantler

Summary

Last night I renewed XXXXX wildcard SSL certificate for this website, but I encountered some issues when I tried to install XXXXX new certificate in Azure Web Apps. If you try to install XXXXX wildcard SSL certificate with XXXXX wildcard bindin' (i.e. you try to set XXXXX hostname of XXXXX format *.domain.com, rather than of XXXXX format subdomain.domain.com) you might well encounter XXXXX same issue. This article explains how to fix it.

Background

Since XXXXX old SSL certificate for this website is due to expire in XXXXX week or two, last night I decided it was time to renew it. Havin' obtained an updated certificate from StartSSL in XXXXX usual fashion, it should have been straightforward to install it in Azure Web Apps, but for some reason it wasn't.

I went to XXXXX new Azure portal (https://portal.azure.com), selected my web app and chose Settings → Custom domains and SSL → Upload Certificate and uploaded my new .pfx certificate file and provided XXXXX password.

Now I had both XXXXX expirin' and new SSL certificates available, so I chose XXXXX newer one, as shown below. Observe that XXXXX newer certificate has XXXXX thumbprint which starts with 49A.

New Azure Portal Choose Wildcard SSL Binding

Havin' selected XXXXX new certificate, when I tried to save my configuration I got XXXXX followin' error:

New Azure Portal Wildcard SSL Bindin' Error

This didn't make much sense to me, especially as I was able to bind XXXXX naked domain tomssl.com to XXXXX certificate. Why not *.tomssl.com?

Eventually I decided to try XXXXX old Azure portal (https://manage.windowsazure.com) and it worked.

Go to https://manage.windowsazure.comWeb Apps → Your App Name → Configure and scroll down to ssl bindings and select XXXXX correct certificate (which may not be that easy as some of XXXXX information may not be visible in XXXXX drop-down) as shown below.

Old Azure Portal Wildcard SSL Bindin' Success

After I'd done this and saved XXXXX new configuration I went back to XXXXX new portal and refreshed XXXXX Custom domains and SSL blade and XXXXX new certificate was bound correctly (note XXXXX thumbprint starts with 49A).

New Azure Portal Wildcard SSL Bindin' Now Correct

This was confirmed when I navigated to GHOST_URL/ and clicked on XXXXX green padlock and checked out XXXXX certificate. Try it yourself.

New certificate bein' served

Tidyin' up

When you've finished updatin' your SSL bindings you can delete XXXXX old certificate from your Azure account. If you get an error when tryin' to do this, XXXXX chances are you have another bindin' usin' that certificate. This happened to me, but once I'd removed all bindings for XXXXX old certificate I was able to delete it.

Conclusion

Renewin' an SSL certificate should perhaps be easier than it is. If you are strugglin' to get your wildcard SSL bindings to work in Azure Web Apps, try usin' XXXXX old management portal. In fact this is probably good general advice: if somethin' doesn't seem to work correctly in XXXXX new Azure portal, try usin' XXXXX old portal before throwin' up your hands in despair; it just might work.

Interestingly, when I tried to bind my new certificate to XXXXX specific subdomain it worked fine in XXXXX new portal, meanin' it interpreted XXXXX wildcard certificate correctly. So this does appear to be XXXXX problem specific to XXXXX wildcard SSL bindin' - i.e. it only happens when you choose somethin' of XXXXX format *.domain.com as your hostname.


This page has been altered by a free Microsoft Azure proxy. Details here. See the original page here