我知道这个问题已经有很多答案了,但是我已经尝试了一切,但仍然无法解决这个问题。我只是想为我的本地主机工作获取一个https。任何帮助/提示将不胜感激,谢谢!
我正在运行python 2.7和OpenSSL 1.1.0f和MacOS 10.13 High Sierra。
我尝试过的/知道的:
curl: (60) SSL certificate problem: unable to get local issuer certificate
我也尝试了所有这些方法,并且得到相同的输出:
openssl s_client -connect localhost:5000
openssl s_client -connect localhost:5000 -CAfile rootCA.pem
openssl s_client -connect localhost:5000 -CApath /etc/ssl/certs/
输出:
openssl s_client -CApath /etc/ssl/certs/ -connect localhost:5000
CONNECTED(00000003)
depth=0 C = US, ST = California, L = San Fran, O = My org, OU = My unit, CN = localhost
verify error:num=20:unable to get local issuer certificate
verify return:1
depth=0 C = US, ST = California, L = San Fran, O = My org, OU = My unit, CN = localhost
verify error:num=21:unable to verify the first certificate
verify return:1
---
Certificate chain
0 s:/C=US/ST=California/L=San Fran/O=My org/OU=My unit/CN=localhost
i:/C=US/ST=California/L=San Fran/O=My org/OU=My unit/CN=localhost
---
Server certificate
-----BEGIN CERTIFICATE-----
certificate stuff...
-----END CERTIFICATE-----
subject=/C=US/ST=California/L=San Fran/O=My org/OU=My unit/CN=localhost
issuer=/C=US/ST=California/L=San Fran/O=My org/OU=My unit/CN=localhost
---
No client certificate CA names sent
Peer signing digest: SHA512
Server Temp Key: X25519, 253 bits
---
.
.
.
. other info....
Start Time: 1530725381
Timeout : 7200 (sec)
Verify return code: 21 (unable to verify the first certificate)
Extended master secret: yes