0

How to setup a self-signed certificate for iis but without a hostname.
I'm building a website for enterprise, it's a local lan website, But Since I want to use identity server for SSO, I need to bind the site to https.
I've created a self-signed certificate, and bind to the website, But when I browse to this site, all the browsers said this site is not secure, so the identity server didn't work.
After searching a lot on the web, it seems the site need a hostname to make the certificate work. But it's an enterprise internal website, I don't think it can be bound to a hostname.
I don't know how to make https work normally. please help!!!

  • Possible duplicate of [How can I create a self-signed cert for localhost?](http://stackoverflow.com/questions/8169999/how-can-i-create-a-self-signed-cert-for-localhost) – Martin May 20 '17 at 11:32
  • 2
    You completely get it the wrong way. A host name won't help. Self-signed certificates are by design not trusted by anyone. If you are building an enterprise site, ask the network administrator how to enroll a valid certificate. – Lex Li May 20 '17 at 14:21
  • Thank you, really helpful, I finally understand this certificate thing now.... – Dave Young May 20 '17 at 23:31

0 Answers0