kevinsteves / pan-python

Multi-tool set for Palo Alto Networks PAN-OS, Panorama, WildFire and AutoFocus
Other
267 stars 102 forks source link

SSL Cert Issue | PAN #29

Closed mubashirali84 closed 5 years ago

mubashirali84 commented 5 years ago

Hello,

I am using the following short code just to verify connectivity to PA device:

p = pan.xapi.PanXapi(hostname='1.1.1.1', api_key= key, use_get= True, ssl_context= None)
print(p)

But it is giving me the following error:

_certificateerror: <class 'ssl.CertificateError'>
_legacy_api: False
_log: <bound method Logger.log of <Logger pan.xapi (WARNING)>>
api_key: ******
api_password: None
api_username: None
hostname: 1.1.1.1
port: None
serial: None
ssl_context: None
tag: None
timeout: None
uri: https://1.1.1.1/api/
use_get: True

Please, help.

kevinsteves commented 5 years ago

hi. there is no error. _certificateerror is just an instance variable.

kevinsteves commented 5 years ago

not an error.