hellosign / hellosign-python-sdk

A Python SDK for HelloSign's API
MIT License
29 stars 48 forks source link

SSL Handshake Error #104

Open TheNova22 opened 2 years ago

TheNova22 commented 2 years ago

Hi,

Ive been working on a project that uses HelloSign and HelloWork. The backend server is written using Flask and deployed on Azure.

While using hellosign-python-sdk to run SignatureRequestSendWithTemplateRequest, I always end up encountering the following error.

urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.hellosign.com', port=443): Max retries exceeded with url: /v3/signature_request/send_with_template (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')])")))

The above error is only seen on the server that is being run on Azure. This doesn't happen in my local system.

When I try to use requests and run requests.post with necessary headers, it ends up working both on local system and the virtual machine.

Are there any potential work arounds?

I have shifted the hosted site from http to https by adding necessary certificates.

Is it a necessity that my instance should have a TLS/SSL certificate or can I turn off the verification when in debug mode?