Monday, November 02, 2009

Renewing a RapidSSL Certificate on SBS 2008

I’ve been quite happy using RapidSSL certificates on SBS 2003 boxes, as the RapidSSL root certificates are installed in the certificate store for Internet Explorer, and the certificate also works for Windows Mobile and Nokia smartphones.

However, I’m not so happy using them on SBS 2008, as RapidSSL is not supported by the Certificate Installation Wizard and the RapidSSL Certificate Request field doesn’t support 4096-bit encryption keys which is the default and unchangeable key length for renewing certificates in IIS 7.0.

So this is the foolproof way for me to use RapidSSL certificates on SBS 2008:

  1. Open up IIS Manager
  2. Select the IIS Server in the left-hand pane
  3. Double-click on Server Certificates in the middle pane
  4. Click Create Certificate Request in the right-hand pane
  5. Fill out the Distinguished Name Properties, ensuring that remote.companyname.com is used for the Common Name (replace companyname.com with your public domain name)
  6. Select 2048 for the Bit Length on the Cryptographic Service Provider Properties page
  7. Save the request as a .txt file somewhere
  8. Open the .txt file and copy and paste the certificate signing request into the RapidSSL renewal page
  9. Go through approval process to get your certificate in e-mail
  10. Copy the certificate out of e-mail and into a .cer file by using Notepad
  11. Run mmc.exe as Administrator
  12. Add the Certificates snap-in and select Computer Account on the Local Computer
  13. Import the .cer file into the Personal certificate store
  14. View the certificate, go to the Details tab and copy the Thumbprint Value data to the clipboard
  15. Run cmd.exe as Administrator
  16. Run the certutil repairstore operation on the imported certificate; replace <thumprint> with the Thumbprint Value data you copied above and if you’re cut’n’pasting the below make sure you type in the double quotes and not use the pasted quotes
    • certutil –repairstore my “<thumprint>”
  17. Refresh the Personal certificate store in MMC and view the certificate for remote.companyname.com; you should now see the “You have a private key that corresponds to this certificate” text added below the Validity section.

Note: If you do try to use the Complete Certificate Request entry in IIS 7.0, you end up with the following error:

“There was an error while performing this operation.

Details: CertEnroll::CX509Enrollment::p_InstallResponse: ASN1 bad tag value met. 0x8009310b (ASN: 267)”

Steps 11-17 above achieve the certificate request completion without error and restores the private key association with the certificate.

I’ve primarily added this blog post for myself, so if the sequence is a bit terse, please let me know and I can flesh it out with some screenshots to help out.

2 comments:

Anonymous said...

Thanks for this info, FWIW here is a related doc from RapidSSL I uncovered along with your page when trying to resolve this problem. https://knowledge.rapidssl.com/support/ssl-certificate-support/index?page=content&actp=CROSSLINK&id=SO15889

RapidSSL said...

You can ask for support from where your buy this certificate.

i am happy with sslmatrix 24/7 live support.