2016-03-02 38 views
1
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

您是否找到解決方案?其實,我正面臨着同樣的問題 – LKM

回答

0

您是否在您的key.pem文件中使用密碼?這不適用於請求庫。您需要一個沒有密碼的私鑰。

相關問題