简体   繁体   中英

Local self signed certificate works in Firefox but not Chrome?

In Firefox I can go to a test local server:

https://localhost:3000/

However in Chrome I get this error:

Attackers might be trying to steal your information from localhost (for example, passwords, messages, or credit cards). Learn more

NET::ERR_CERT_INVALID

This is on my localhost and I have even manually added the self-signed certificate to Chrome.

I followed these directions here :

and this is the screen were I added the cert:

在此处输入图像描述

I had the same issue. But a bit different scenario.
For my self-signed server certificate I have NET::ERR_CERT_AUTHORITY_INVALID, but for another client certificate I have NET::ERR_CERT_INVALID (this does not allow to proceed)

I was generated these certs with help of KeyStore Explorer app. And there you can add already prepared template like 'SSL Server' or 'SSL Client': 带有模板的用户界面

So, 'SSL Server' had expected ERR_CERT_AUTHORITY_INVALID warning and SSL Client has the error from the topic. (ERR_CERT_INVALID) The difference is in the option of "Extended Key Usage" extension.
在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM