我用HTTPS协议创建一个Node.js应用程序。我按照nodejitsu https://docs.nodejitsu.com/articles/HTTP/servers/how-to-create-a-HTTPS-server/
的教程进行了操作但是当我向服务器发送请求时,我发出以下错误:
curl: (60) server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
More details here: http://curl.haxx.se/docs/sslcerts.html
当我从Chrome打开时,我只能在按高级后访问该页面并进入该页面。
这是我在生成证书时填写的内容:
Country Name (2 letter code) [AU]:ID
State or Province Name (full name) [Some-State]:East Java
Locality Name (eg, city) []:[my city name]
Organization Name (eg, company) [Internet Widgits Pty Ltd]:[some string]
Organizational Unit Name (eg, section) []:[some string]
Common Name (e.g. server FQDN or YOUR name) []:[IP address of the server (Azure server) without port and 'https://']
Email Address []:[my personal yahoo email]
Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:[empty]
An optional company name []:[empty]
该应用程序托管在Azure服务器上。
我该如何解决?
答案 0 :(得分:1)
您使用的是自签名证书,导致验证失败。您需要获取签名证书才能删除验证错误。