import requests
cert_file_path = "/installables/Test/icsp-python_23122015/icsp-python/icsp/cert.pem"
key_file_path = "/installables/Test/icsp-python_23122015/icsp-python/icsp/key.pem"

url = "https://10.54.200.126/rest/os-deployment-install-zips/5020001"

cert = (cert_file_path, key_file_path)
r = requests.get(url, cert=cert, verify=False)

最佳答案

您在key.pem文件中使用密码吗?这不适用于请求库。您需要一个没有密码的私钥。

关于python - 收到此错误:SSLError:[SSL] PEM库(_ssl.c:2515),我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/35739421/

10-10 16:09