我知道这个问题已经有很多答案了,但我已经尝试了所有的方法,我仍然不能让这个工作。我只是想让我的本地主机使用https。如有任何帮助/提示,将不胜感激,谢谢!在
我运行的是python2.7和openssl1.1.0f和macos10.13highsierra。在
我所尝试/知道的:
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
目前没有回答
相关问题 更多 >
编程相关推荐