【发布时间】:2023-07-01 14:26:01
【问题描述】:
以下代码在我的 Ubuntu 机器(Python 2.7.6)上运行良好:
r = requests.get(GET_URL, verify=certificate_path)
当我使用 Debian 在我的 BeagleboneBlack 中运行这段代码时,我得到了这个:
/usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/util/ssl_.py:100:
InsecurePlatformWarning: A true SSLContext object is not available. This prevents
urllib3 from configuring SSL appropriately and may cause certain SSL connections
to fail.
For more information, see https://urllib3.readthedocs.org/en/latest/security.html
#insecureplatformwarning. InsecurePlatformWarning
[Errno 1] _ssl.c:504:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
certificate_path 具有自签名证书的路径。有人可以帮忙吗?
【问题讨论】:
-
你试过这些答案吗? *.com/questions/30405867/…
-
*.com/questions/41074813/… 为您快速修复,几天前我在 PyFCM 中遇到了这个问题
-
@nuriselcuk ,我尝试了您链接中的建议,但没有成功。
-
@Mostafa ,我认为您没有仔细阅读我的解释,因为我已经完成了您建议中应该做的事情。
标签: python debian ssl-certificate beagleboneblack self-signed