Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to create a cert for the default web site on my local dev server using selfssl7

I ran the following and it generates a cert for the machiname ( visible under "server certificates" in IIS) SelfSSL7 /N:cn="localhost",cn="My Machine name" /K 1024 /V 18250 /I /S "Default Web Site" /T /Q

SSL works if I hit the site using the machine: "https://My Machine name" but "https://localhost" does not work The message I get is: "The security certificate presented by this website was issued for a different website's address."

How can I make SSL work using both the machine name and localhost?

share|improve this question

migrated from May 22 '11 at 21:59

This question came from our site for professional and enthusiast programmers.

Figured it out: SelfSSL7 /Q /T /I "Default Web Site" /N cn=Machine Name;cn=localhost

This registers both the machine name and localhost in the cert

share|improve this answer

Your Answer


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.