我试图连接到我的赛门铁克杀毒软件,使用post请求,但python抛出了一个错误
import requests, json
import certifi, urllib3, httplib
## Setup username/password ##
data = {'username': 'username',
'password': 'password',
'domain': ''}
url = 'https://myurlthatuseshttps'
headers = {'Content-Type: application/json'}
r = requests.post(url, cert=('C:\SymantecScriptPython\PythonApplication1\PythonApplication1\symantec1.cer'))
print(r.status_code)
conn.close()
错误:[SSL]PEM lib(\u SSL.c:2600)
我现在不知道该怎么办,除非我应该使用以.pem结尾的cert
目前没有回答
相关问题 更多 >
编程相关推荐