cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1627
Views
5
Helpful
2
Replies

DNA Center and API list devices

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! 

2 Replies 2

I found the solution myself. I had to add verify=False

 

Have a nice weekend

Put verify=false where at in the script?