I have a program that runs successfully in my user/virtualenv. The program access an API using requests
. For the purposes of this post, the whole program can be read as:
requests.get("https://example.com")
This works totally fine when I call it from the command line. However I'm trying to get it to run under supervisord
and for whatever reason when I do it this way it is failing with an SSL Error like the below:
SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)")
It is using the same user, python environment, directory etc. Any idea what else to check / what else could be causing this?
Edit: I think this might be a firewall rule type of thing. Exploring that option.