Open 0atman opened 8 years ago
@0atman -
Good catch!
All hook services are run in a fairly restricted chroot
environment. Most likely it's just missing the file.
I think if we copy the cert into the jail it might work. If not it looks like we can also set the REQUESTS_CA_BUNDLE
environment variable.
I'll log into the server in the next day or so and see if I can get requests
to work with HTTPS.
Could you provide a test hook showing the issue? That would help in getting this to work.
Thanks!
Test hook written! it tries to print https://api.github.com https://hook.io/0atman/ssl
When I requests a HTTPS url with python's requests library, I get this
SSLError
:The way to fix this, for the moment, is to not verify certs when making a SSL request[1]:
However, this shouldn't be a long-term solution. I think that the requests library can't find/doesn't have perms to access cert information. See [1] for details.
[1] http://stackoverflow.com/questions/24973326/requests-exceptions-sslerror-errno-185090050