07-02-2021 04:16 AM
HI all,
I have created a python script that currently displays hostname, SOftware version, Series, Description, Locationname and Serialnumber for our deployed switche in our DNA Center.
This works in a sandbox but i have trouble connecting it to our own DNA center.
These are the erros i get when trying to make contact to our DNA center
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1108)
Max retries exceeded with url: /dna/intent/api/v1/network-device (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certifica
te verify failed: self signed certificate in certificate chain (_ssl.c:1108)')))
I think I need to trust self signed certificate in somehow, but I do not know how to do that.
I have made the script using postmen, python and I use powershell to run the script.
I hope someone can help me regarding the SSL error.
Thanks!
07-02-2021 05:18 AM
I found the solution myself. I had to add verify=False
Have a nice weekend
11-24-2023 04:39 AM
Put verify=false where at in the script?
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide