How to connect to HTTPS DSS

Tomas
Tomas Registered, Neuron 2022 Posts: 121 ✭✭✭✭✭✭

Using self signed certificate returns:
requests.exceptions.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:579)

How to set auto-trust during the connection?
Thanks

import dataikuapi

host = "https://localhost:11200"
apiKey = "some_key"
client = dataikuapi.DSSClient(host, apiKey)

Best Answer

  • AdrienL
    AdrienL Dataiker, Alpha Tester Posts: 196 Dataiker
    Answer ✓
    On a DSSClient instance, you can disable SSL certificate verification (not recommended) like this:

    client._session.verify = False

Answers

Setup Info
    Tags
      Help me…