Question

SSL: CERTIFICATE_VERIFY_FAILED when trying to run notebook "1_Authentication" under "using-cognite-python-sdk"

  • 24 January 2023
  • 2 replies
  • 17 views

Badge

I encountered the following SSLCertVerificationError when trying to run the example notebook "1_Authentication" under "using-cognite-python-sdk".  The authentication via interactive login was successful. 

However, it threw the SSL error when executing “client.login.status()”

ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1129)

 

I updated “certifi” as suggested in another discussion thread, but the error still exists. I’m using Python 3.9.12.

ANy suggestion is appreciated.


2 replies

@Wei Wu  can you check whether if it works by disabled SSL in cognite/client/config.py in your local machine? Set self.disable_ssl to True.

self.disable_ssl: bool = True

 

Badge

Yes. It works after setting self.disable_ssl to True. Thanks! @Mithila Jayalath External 

Reply