0

I have created a certificate using powershell using the below command

New-SelfSignedCertificate -Subject “CN=”ids” -CertStoreLocation “cert:\Localmachine\My”

I have copied this certificate in Trusted root certificate also. Setup the IIS to use this certiicate but chrome is displaying error Not secure (NET::ERR_CERT_COMMON_NAME_INVALID). Please refer the attachments for the settings and issue

Please help me to solve this issue

Chrome Invalid Certificate Chrome Not Secure IIS Settings Personal Certificate created Copied to trusted Certificate in Localmachine

leo
  • 451
  • 1
  • 3
  • 12
  • Does this answer your question? [NET::ERR\_CERT\_COMMON\_NAME\_INVALID - Error Message](https://stackoverflow.com/questions/56138678/neterr-cert-common-name-invalid-error-message) – Crypt32 Feb 17 '21 at 06:37

2 Answers2

0

First, you need to add "127.0.0.1 ids" in hosts file.

Second, change powershell command line to generate the certificate again. Delete the old one and use this new.

New-SelfSignedCertificate -DnsName "ids" -CertStoreLocation “cert:\Localmachine\My”
Bruce Zhang
  • 2,880
  • 1
  • 5
  • 11
0
New-SelfSignedCertificate -Subject “CN=ids” -DnsName ”ids”, ”idsDomin1”,”idsDomin2” -CertStoreLocation “cert:\Localmachine\My”
leo
  • 451
  • 1
  • 3
  • 12