SSLerror when running Target API with Python | Community
Skip to main content
jonathanl557422
Level 2
November 18, 2020
Solved

SSLerror when running Target API with Python

  • November 18, 2020
  • 1 reply
  • 4321 views

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')])")))

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by evidana

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. 

1 reply

evidanaCommunity AdvisorAccepted solution
Community Advisor
November 18, 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. 

jonathanl557422
Level 2
November 18, 2020
I'm able to download the public cert and private key but I'm stuck there as to what to do next. Unfortunately, I am not a python expert either, just started with Spyder (Python 3.7)