0

I want to create a self-sign certificate on a Windows Server 2012 R2, just to test and try it.

I have no error on my certificate information but when I browse to http://localhost, I see the browser red bar, meaning something is wrong with the certificate.

Browser warning (red bar)

I tried many references like this, but I can not find my mistake.

Is that a way to see logs or trace errors?

  • 1
    The very nature of a self-signed certificate is that it's untrusted by the browser, because it's not signed by a legitimate CA. You can opt to [explicitly trust one](https://www.google.com/search?q=trusting+a+self-signed+certificate+in+internet+explorer) on a per-certificate basis. Any difficulties with that process are **off-topic** here, and should be directed somewhere like SuperUser with *specific* details on what you've attempted. – ceejayoz Jul 13 '16 at 15:18
  • @ceejayoz ,then why this option is available on windows?when browsers never trust to this types of ssl or.... – motevalizadeh Jul 13 '16 at 15:22
  • 1
    Self-signed certs are perfectly fine for local development work. – ceejayoz Jul 13 '16 at 16:27

1 Answers1

5

The certificate was not issued to localhost. The certificate was issued to WIN-CN2DB9TT88P. Those are not the same. Browsing to http://localhost in your web browser is not the same as http://WIN-CN2DB9TT88P. You can trust a self-signed certificate if you want to, just by importing the cert into your Trusted CAs store, but it's only valid for the very specific name that is on the certificate.

Ryan Ries
  • 55,481
  • 10
  • 142
  • 199