Certificate verify failed python api client with ansible

Highlighted
nou
Level 1
Certificate verify failed python api client with ansible

Hi, i am trying to administrate DSS with Dataiku DSS modules via ansible and I am getting this error:



"msg":"SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:618)"



how can I fix this?

 

0 Kudos
1 Reply
Alex_Combessie Dataiker
Dataiker
Re: Certificate verify failed python api client with ansible

Hi,

Without more context on what you are trying to do with the Dataiku API client, it is difficult to identify the root cause of the error.

Have you followed the SSL Certificate steps highlighted on https://doc.dataiku.com/dss/latest/installation/custom_install.html#configuring-https?

Otherwise, the easiest remains to use SSL without verification by doing

client = dataikuapi.DSSClient('<hostname:port>', api_key)
client._session.verify = False

 Hope it helps,

Alex

0 Kudos