Welcome to MSDN Blogs Sign in | Join | Help

Localhost Common Name

What CN should I use when issuing a test certificate for a service?

There are three types of names you'll commonly see:

  1. fully qualified domain names
  2. machine names (netbios)
  3. localhost

These names are what work when connecting at internet, intranet, and local machine scales, respectively. The one most commonly gotten wrong is for localhost, possibly because you see it so often for test certificates but never use it elsewhere. Check your spelling of localhost and make sure there are no spaces, quotation marks, port numbers, or URIs in the name if you are getting an error validating the certificate. Also, make sure that you aren't trying to access a service with a certificate issued to localhost from a different machine.

Next time: Deriving from Bindings

Published Friday, December 07, 2007 5:00 AM by Nicholas Allen
Filed under: , ,

Comments

Friday, December 07, 2007 1:20 PM by Nicholas Allen's Indigo Blog

# Silent Security Failures

I'm using reliable messaging and getting an exception that the reliable session has faulted. It's the

New Comments to this post are disabled
 
Page view tracker