cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Dynatrace API SSL certificate problem: unable to get local issuer certificate

Yosi_Neuman
DynaMight Guru
DynaMight Guru

Hi guys,

When using https://github.com/Dynatrace/dynatrace-api/blob/ma... (after adding the right url and token) got the follows error: "SSL certificate problem: unable to get local issuer certificate"

Any suggestions?

Yos

dynatrace certificated professional - dynatrace master partner - Matrix Soft Ware Division - Israel
2 REPLIES 2

lucas_hocker
Dynatrace Helper
Dynatrace Helper


Hi Yos,


From the PyCurl error in your screenshot it seems the local CA bundle python is using on your system is outdated. If you try executing an API request from curl on the command line, does it work? I did a quick internet search for "pycurl error 60" and the first few results point to using
curl.setopt(pycurl.CAINFO,...) to set the path to an updated system CA bundle. You would add this right before line 24, c.perform(). Alternatively, it looks like you can utilize the python package certifi for an updated bundle local to python. Please reach back out if that doesn't work for you.


Best regards,

Lucas Hocker


Sales Engineer


Dynatrace

Hi @lucas_hocker 

Had some time and changed the pycurl into requests and its works like a charm.

Also added the ability to send env id and token as parameters.

Python file is attached here as txt file  

HTH

Yos 

 

dynatrace certificated professional - dynatrace master partner - Matrix Soft Ware Division - Israel

Featured Posts