HTTPS/SSL error while accessing API
Hello,
Is it a problem with Act-On or do I need to obtain a .pem file from Act-On ?
Because I cannot access the API at all as it throws the below error
HTTPSConnectionPool(host='restapi.actonsoftware.com', port=443): Max retries exceeded with url: /api/1/list (Caused by SSLError(SSLError(1, '_ssl.c:491: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed'),))
It is obviously working when I set verify=False which ignores the SSL cert validation.
response = requests.post(base_url + '/token', data=authentication_params, timeout=5, verify=True)
Thank you
Ravi
Comments
1 comment
This issue is appearing because the API client you are using does not support Server Name Indication (SNI). With our new API manager that we migrated to on Monday, SNI is now required when making a TLS connection. We are working with our API manager for a potential workaround. But for best results you should make sure that you are using a service that supports SNI.
Please sign in to leave a comment.