试图了解如何处理自签名证书。我正在使用迷迷糊糊的ubuntu .After,使用unix.stackexchange.com中描述的方法导入根证书。令我惊讶的是,卷发起了作用,但海蒂派却没有。

curl -XPOST -H "Content-Type: application/json" -d '{"name":"Joseph","sname":"adfadf"}' https://x.x.x.x/test.php
echo '{"name":"Joseph","sname":"adfadf"}' | http POST https://x.x.x.x/test.php
http: error: SSLError: HTTPSConnectionPool(host='x.x.x.x', port=443): Max retries exceeded with url: /test.php (Caused by SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)'),)) while doing POST request to URL: https://x.x.x.x/test.php然而,当我使用但这与信任服务器上调用API的证书的方法有一点不同。
有什么事情我做得不好吗?
发布于 2017-10-23 16:17:32
经过大量的googlefu之后,结果发现它是页面下的一个bug。当我将pip安装替换为apt-get安装时,它就开始工作了。
https://stackoverflow.com/questions/46878029
复制相似问题