python-onvif-zeep icon indicating copy to clipboard operation
python-onvif-zeep copied to clipboard

TLS/SSL support

Open ThomasCr opened this issue 4 years ago • 1 comments
trafficstars

would be nice to have TLS/SSL support, because my cam only supports https access.

ThomasCr avatar Sep 23 '21 19:09 ThomasCr

This version does support TLS

from onvif import ONVIFCamera
from requests import Session
from zeep.transports import Transport

session = Session()
session.verify = False # Only if you need to not validate certificates, not recommended for production
transport = Transport(session=session)

# You have to specify https in the hostname for it to work properly
mycam = ONVIFCamera('https://1.1.1.1', 443, 'admin', '1234', transport=transport)

miguelrjim avatar Jul 17 '23 05:07 miguelrjim