Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

We've recently suffered a server collapse while moving sites from one box to another. The old box was running IIS6 / Windows Server 2003, the new IIS7 / Windows Server 2008. Normally when moving sites with SSLs we exported the Certificate on the old box as a PFX and imported this onto the new box. Alas, with the sudden collapse of our old server, this is no longer an option.

What we DO have are the original CSR and the resulting CER files. Importing these into the certificates snapin on the new 2008 box doesn't work - the certs are missing the key icon and they are not selectable in IIS7. Indeed, if we try to add them THROUGH IIS7 they appear until you move away from the Server Certificates section, at which point they disappear.

Is there any way, given the files we do have, of importing these to our new server? I found a method involving the use of certutil -repairstore my [serial number] - but this gave us access denied even when run from Administrator Command Prompt.

That I am here asking this on a Sunday night may give you an idea of the seriousness! All help and tips appreciated, thank you.

share|improve this question

2 Answers 2

up vote 1 down vote accepted

If all you have are the CSR and the signed certificate you only have the public key. If you have no way of recovering the private key from the old server you will need to start over with a new key + CSR.

When getting a new certificate signed I would recommend making a backup of the private key immediately (same procedure as you describe) and storing that in a safe location to avoid this kind of situation where the only copy is on hardware that no longer works.

share|improve this answer
    
We ended up regenerating the CSR on the new server and having the certificates re-issued through this. Our certificate backup procedures are being modified accordingly. I've accepted your answer as the best one, thanks! –  MikkyX Apr 1 at 9:24

Go to here: https://www.sslshopper.com/ssl-converter.html

Set "convert to" to the PFX value.

Enter the Cert, CA and Private key into text files and then upload them to the site.

Convert the files.

Download the PFX file and then upload to your server. Install the PFX from SSL certificates in IIS then configure the bindings to use this SSL.

Done.

share|improve this answer
1  
I have two problems with this suggestion: 1) OP doesn't seem to have the private key anymore so they can't actually do this. 2) Why would anyone in their right mind send their private key to some random site? –  Håkan Lindqvist Mar 30 at 22:29

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.