Groups | Blog | Home
all groups > iis security > december 2003 >

iis security : Importing CERT into Win2k for IIS


Jeff Fink
12/12/2003 2:11:49 PM
I have two parts to the CERT. I have the original part I sent the supplier
which looks like this:
-----BEGIN NEW CERTIFICATE REQUEST-----
<cert info>
-----END NEW CERTIFICATE REQUEST-----

and I have the response sent by the Cert supplier. I can go into MMC and
add the Certificates snap-in, but I can't find the right way to import the
original file and then finish it with the one from the Cert supplier.

Any ideas?

Thanks,
-Jeff

Ohaya
12/12/2003 5:07:55 PM
Jeff,

I'm assuming that the cert request you mentioned was generated by using
server certificate wizard in the IIS Manager. If that's the case, just
go back into the IIS Manager, right-click on website, select
Properties. Then click the Directory Security tab, then the Server
Certificate button at the bottom, and the wizard starts, browse to the
certificate file returned by the CA.



[quoted text, click to view]
Jeff Fink
12/12/2003 6:59:50 PM

[quoted text, click to view]

The cert was generated on another box that no longer exists. Does the file
that comes back from the CA contain everything I need? It looks like IIS
generated a password that I need to recall to get it to import that way.

Ohaya
12/12/2003 10:52:26 PM


[quoted text, click to view]


Hmmm...

When you say that "The cert was generated on another box..." do you mean
that the original certificate REQUEST was created on another machine
with IIS on it, and you used IIS to create the certificate REQUEST?

Or, do you mean you created the certificate request on another machine
with some other mechanism/program (for example OpenSSL)?

I'm not 100% sure, but in either case, I think that the file that comes
back from the CA doesn't normally contain 'all' that you need, as I
think that what you get back doesn't normally have the private key which
gets generated when you create the certificate REQUEST.

I think that the way that things are suppose to work is that when you
create the original certificate request, a key PAIR, consisting of a
private key and a public key, gets generated. The public key is
embedded in the certificate request which you send to the CA.

The private key normally stays on the original machine.

That's why the normal recommendation is to backup the certificate
request WITH the private key, because if the private key gets corrupted
or deleted (which I've done before :(), you still have it available.

I think that some CAs are able/willing to archive the private key for
you (I think this is called something like "key escrow"), but I'm kind
of guessing your CA didn't do that.

Anyway, if the CA doesn't have the private key, and the original machine
where the private key was on is gone, I'm pretty sure that just the
certificate that you got back from the CA won't be of use.

More specifically, I think you should still import the certificate from
your CA using MMC, but if you then display the certificate in the MS
certificate applet by double-clicking on the certificate, it won't show
the line "You have the private key that corresponds to this
certificate.".

Then, even if you use IIS Manager to assign the certificate that you
imported, SSL won't work (since the private key is missing). You can
see this if you run the SSLDiag utility from MS:

http://www.microsoft.com/technet/treeview/default.asp?url=/technet/prodtechnol/windowsserver2003/downloads/ssldiags.asp

When you run SSLDiag, it'll note that the private key is missing, and
when you try to connect to the website, you'll get a (somewhat
misleading) error message like "Cannot find server or DNS".

Apologies for the longish explanation, but I'm kind of thinking as I'm
writing this :)....

Paul Lynch
12/16/2003 11:36:04 AM
On Fri, 12 Dec 2003 18:59:50 -0700, "Jeff Fink" <jfinkjfink@yahoo.com>
[quoted text, click to view]

Jeff,

You must install the certificicate on the original machine that made
the original request. Once you have done that you can export it to
another machine.

This is how you install the certificate :
Installing a New Certificate with Certificate Wizard for Use in
SSL/TLS
http://support.microsoft.com/?id=228836

This is how you export it :
HOW TO: Back Up a Server Certificate in Internet Information Services
5.0
http://support.microsoft.com/?id=232136

and this is how you import it on the new machine :
How to Import a Server Certificate for Use in Internet Information
Services 5.0
http://support.microsoft.com/?id=232137


Regards,

Paul Lynch
AddThis Social Bookmark Button