Google Chrome localhost | NET::ERR_CERT_AUTHORITY_INVALID

前端 未结 6 1964
臣服心动
臣服心动 2020-12-23 21:49

All of a sudden I seem to have an issue with Google Chrome using localhost.

I\'m trying to access any of my development sites (using Ampps) and I get the following e

6条回答
  •  一个人的身影
    2020-12-23 22:07

    you need to add remote site certificate to your local key store

    1. To download certificate from remote site, you will require keytool, open gitbash as admin and run below command to generate the certificate

      openssl s_client -showcerts -connect host:port

    2. save the value of above command to from -----BEGIN CERTIFICATE----- to -----END CERTIFICATE----- to the .crt file.

    3. to add certificate to your local key store, run below command

      keytool -import -noprompt -trustcacerts -alias name_of_certificate -file "path_of_dot_crt_file" -keystore "C:\Program Files\Java\jdk1.8.0_192\jre\lib\security\cacerts" -storepass changeit

    you can also add downloaded certificate to your browser.

提交回复
热议问题