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)
答案 0 :(得分:0)
您是否在key.pem文件中使用密码?这不适用于请求库。您需要没有密码的私钥。