No more then a few paragraphs of things I want to archive (instead of try to remember)

Wednesday, July 18, 2007

localhost SSL certificate

Download and Install the SSL cert generator


Download the Xeno certificate generator at http://www.xenossoftware.com/freetools/certificategenerator/.
Install the software

Create an SSL certificate


Run the Xeno certificate generator
Start -> All Programs -> Xeno Certificate Generator -> Xeno Certificate Generator

Fill in the necessary fields and browse to C:\certificate.pfx for the output.



Click the [Generate Certificate] button

Import your cert into your personal certificate store


Open the certificate manager MMC
Start -> Run -> type: "certmgr.msc" -> click the [OK] button

Right click on the Personal folder
Choose All Tasks -> Import… from the context menu
Click Next



Browse to your newly created certificate. You may have to change the extension type to .pfx


Click the [Next] Button 3 times, and then the [Finish] button

You should receive a message box with "The import was successful."

Use your new certificate in IIS


Open IIS
Start -> Run -> type: "inetmgr" -> click the [OK]

Right click on Default Website
Choose Properties from the context menu
Click on the [Directory Security] tab



Click the [Server Certificate...] button
On the dialog box, that pops up click the [Next] button
Choose Assign an existing certificate and click the [Next] button
Your newly created certificate will be available, choose this certificate and click [Next]
Click the [Next] button and then the [Finish] button

Verify that 443 is the SSL Port


With the Default Web Site Properties dialog box still open, click on the [Web Site] tab



Test the SSL


Now open up you browser and open a page on your local IIS
Now change the URL to use HTTPS instead of HTTP

5 comments:

don_simoun said...

I followed the steps here but I got stuck in the "Use your new certificate in IIS" header. The certificate which I created is not listed.

sonu1234 said...

i imported the certificate successfully but i cannot see the imported certificate in the IIS -> Assign existing certificate box.

Please help as soon as possible.

Anonymous said...

I also got stopped at the Certificate Selection screen. The certificate is not listed.

ChrisField said...

I also got stuck at that point, but basically you just need to move/copy the certificate to Local Machine instead of current user.

sri said...

I also got stucked at the same point..Let me know if you have got solution