簡體   English   中英

收到此錯誤:SSLError:[SSL] PEM庫(_ssl.c:2515)

[英]Getting this error :SSLError: [SSL] PEM lib (_ssl.c:2515)

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文件中使用密碼嗎? 這不適用於請求庫。 您需要一個沒有密碼的私鑰。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM