Solving SSL Certificate expiration problem with an existing Windows Azure Application

Recently I was working on an issue where the SSL certificate was expired and due to it, the user were warned to not to use site. The certificate expiration was visible as below:

 

 

In this situation the following steps should be taken to get this problem resolved:

  1. Get the new SSL certificate from the Certification Authority for the same domain, by using a machine which has IIS to generate the CRI and submit the CRI to CA so you can get certificate chain (root cert, intermediate cert and domain cert). This is mostly done on a Windows Server machine with IIS on which the domain specific website exists.
  2. Install the SSL certificate chain on development machine and export the PFX
  3. Upload the PFX at Windows Azure Management Portal in Service Certificate section
  4. Add correct certificate thumb ID to your Windows Azure application endpoint
  5. Repackage Windows Azure application and update it on portal

 

What if you don’t have access to any of that, Windows Server machine, Visual Studio, previous website etc. To make the problem little more complicated what if the application owner have no access to original Visual Studio application project or CSPKG/CSCFG” because the application was completed by someone else who is nowhere to found.

 

So if you don’t have anything just a Windows 7 machine, you still can work out this issue as below:

 

  1. Enable IIS in your Windows 7 machine
  2. Use IIS to generate CRI for your domain by entering correct domain specific details for your application
  3. Get the CRI and submit to your “Certification Authority” and received the certificates (root certificate, intermediate certificates and domain certificates). This could be CRT, P7B files etc.
  4. Now in IIS, import the certificates in “Server Certificate” section at root of the IIS. You can provide the CRT/P7B files and it will be accepted.
  5. Once certificate is imported in IIS, you can see it listed in the “Server Certificate” list
  6. Verify that you have all 3 root certificate, intermediate certificates and domain certificates linked together to your domain certificate
  7. Now u can install the domain certificate just by use the certificate install option within the certificate
  8. Now you can also export the domain certificate to PFX, by selecting “export the private key” option in certificate export wizard. Enter the password to protect the private key. This will give you a PFX file for your domain certificate which includes the full certificate chain.
  9. Now take the PFX and upload to Windows Azure Management Portal in Service Certificate section
  10. Verify that you have all 3 (root certificate, intermediate certificates and domain certificates) available at the portal and get the domain certificate thumbprint ID.
  11. Now Edit the Service Configuration file on Portal to replace old expired certificate Thumb ID to new PFX certificate Thumb ID.

 

Once configuration update is completed you will see your SSL related problem is resolved.