how to configure newest version chrome accept a self-signed certification
- User
how to configure newest version chrome accept a self-signed certification
- Assistant
- User
when I use a self signed certification in chrome,it replies "您的连接不是私密连接 攻击者可能会试图从 192.168.0.107 窃取您的信息(例如:密码、通讯内容或信用卡信息)。了解详情 NET::ERR_CERT_COMMON_NAME_INVALID", how to fix it?
- Assistant
- User
when I run "openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodes -subj “/CN=192.168.0.107” -extensions san -config <(echo “[req]”; echo distinguished_name=req; echo “[san]”; echo subjectAltName=IP:192.168.0.107)" ,it could not run ,reply with "req: Error on line 1 of config file "/dev/fd/63" 40E7B2C2C67F0000:error:07000065:configuration file routines:def_load_bio:missing equal sign:../crypto/conf/conf_def.c:530:HERE-->“[req]”line 1" ,why?
- Assistant
The error you're encountering when running the OpenSSL command is due to an issue with the quotation marks in your command. It appears that the quotation marks around the
[req],[san], andsubjectAltName=IP:192.168.0.107are not the straight quotation marks ("), but rather curly or smart quotes (“ ”). This often happens when commands are copied from web pages that automatically format straight quotes into curly quotes or when using certain text editors which automatically convert them.To fix the issue, ensure you're using straight quotation marks (also known as ASCII quotation marks) in your command:
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodes -subj "/CN=192.168.0.107" -extensions san -config <(echo "[req]"; echo distinguished_name=req; echo "[san]"; echo subjectAltName=IP:192.168.0.107)