I am trying to connect to my symantec antivirus, using a post request, but python is throwing an errorw
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()
Error: [SSL] PEM lib (_ssl.c:2600)
I am not sure what to do at this point, unless i should use a cert that ends in .pem