得到此错误:SSLError:[SSL] PEM lib(_ssl.c:2515)

时间:2016-03-02 05:46:56

标签: python ssl

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)

1 个答案:

答案 0 :(得分:0)

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