I use SSL on my web servers for privacy and not authentication. Since it is my own use I don’t care if it’s from Verisign or Thawte. Also why shell out cash for the certificate when a self signed certificate will do just fine?
Internet Explorer used to permit you to install web server certificates by examining the SSL certificate and importing it into your key store. Version 7 of the browser took that away and made it more difficult to import them into the key store.
Here is how I imported the web server certificate into Vista.
1) Get the web server certificate.
You will need a copy of your web server cert. I run the server in question so that’s not a problem for me. All I had to do was locate the file referenced in my Apache conf file like so.
If you don’t have access to the certificate then download and install the Windows version of OpenSSL from this URL here. Get and install the setup binary and install with the default locations for everything.
Now from the Start menu run the Command Prompt and type in these commands.
cd “Program FilesGnuWin32bin”
openssl s_client -connect YOUR.SERVERNAME.COM:443 > %TEMP%www.crt
Type QUIT and hit enter to get the web server to disconnect you. I used %TEMP% because your user account may not have permission to write files somewhere else. In your temp directory is a file called www.crt. This is your web server certificate.
2) Run the Microsoft Management Console.
Click on the Start menu and in the search box type “mmc”. This will find and display in the list mmc.exe, double-click that or just hit enter.
3) Add the Certificates snap-in.
Once MMC is running you will need to add in Certificates snap-in. Use the menu File -> Add/Remove Snap-in… menu to add it. You will be prompted with a selection for “This snap-in will always manage certificate for”. You can select “My user account” or “Computer account” I opted for computer account; both work fine.
4) Import the web server SSL certificate.
One the snap-in is installed expand the tree on the left column to get to Console Root -> Certificates (Local Computer) -> Trusted Root Certification Authorities -> Certificates.
Once there select the menu Action -> All Tasks -> Import… to start the “Welcome to the Certificate Import Wizard”.
Click on Next and you’ll be asked for the file to import. In the File name: field type in
from when you imported the certificate using openssl.
Click on Next and you will be prompted for where to place the certificate. Just go with the default. Click Next a couple more times and you should see the message “The import was successful”.
Now the list of certificates should include the one you just imported.
This can be used for importing certificates from other self-signed SSL based services such as IMAPS (port 993), POP3S (port 995), or SMTPS (port 465). Once certificates are imported into the “Trusted Root Certification Authorities” store then Internet Explorer, Outlook, etc. will stop complaining.
I tried this method – and it says it imports – but it never appears in the list – and Outlook 2007 consequently – never accepts the connection to the remote Exchange host.
September 18, 2007 — 7:02 pm
Jan Dembowski says:
That’s weird. I suggest you use another store instead of
Certificates (Local Computer) -> Trusted Root Certification Authorities -> Certificates
I’ve used this with Outlook 2007 to eliminate the annoying certificate dialog box.
Try putting it into your Personal certificate store to see if that makes a difference.
September 18, 2007 — 10:06 pm
How do you do the same in Firefox?
February 4, 2009 — 2:29 pm
Jan Dembowski says:
With Firefox it’s even easier. Just allow the SSL certificate and make the exception permanent.
No need to do anything else.
February 5, 2009 — 6:13 am
Thank you, by using your method I was able to add an ssl certificate to use with a webdav drive. It seem that windows uses the same certificates as internet explorer.
June 8, 2009 — 2:41 pm
Jan Dembowski says:
You’re welcome, I’m glad this solved a problem for you.
It’s more accurate to say that Internet Explorer uses the same certificate store as the rest of your PC, but you get the idea.
June 8, 2009 — 7:41 pm