Skip to content

Problem with certificate CA in python (SSL: CERTIFICATE_VERIFY_FAILED) #761

Closed Answered by vivekatoffice
roomsjesse asked this question in VAPIX
Discussion options

You must be logged in to vote

Hi @roomsjesse ,
Take a look at this : 402

If you are using a self-signed certificate on the Axis device then try with "verify=False":

import urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) #

import requests
from requests.auth import HTTPDigestAuth

#Camera credentials
cam_user = 'Vivek'
cam_pass = 'Kumar'  # Replace with your actual password
auth = HTTPDigestAuth(cam_user, cam_pass)
ip_address = '10.176.12.130'

url = f'https://{ip_address}/axis-cgi/basicdeviceinfo.cgi'

parameters = {
    'apiVersion': '1.0',
    'context': 'Client defined request ID',
    'method': 'getAllProperties',
}

response = requests.post(url, json=parameters,  auth=auth,verify=False)

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@roomsjesse
Comment options

@roomsjesse
Comment options

Answer selected by roomsjesse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
VAPIX
Labels
None yet
2 participants