SSLerror when running Target API with Python

Avatar

Avatar

jonathanl557422

Avatar

jonathanl557422

jonathanl557422

18-11-2020

I'm able to connect and get API responses with an API client (Insomnia).

However, I keep getting an SSL error when trying to do the same with Python. Anyone managed to get it to work without the SSL error or using verify=false?

 

This is the error I get:

 

SSLError: HTTPSConnectionPool(host='mc.adobe.io', port=443): Max retries exceeded with url: /sunlifeassurance/target/activities/ (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')])")))

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar

Eric_Vidana

Avatar

Eric_Vidana

Eric_Vidana

18-11-2020

Are you able to download the cert from https://mc.adobe.io/ and reference to it in the verify param? Not a python expert and not sure what library you are using.