我正在尝试使用发布请求连接到我的symantec防病毒软件,但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(_ssl.c:2600)
我不知道该做什么,除非我应该使用以.pem结尾的证书