I have a Perl program, intended to be run from a subversion post-commit script, which needs to connect to a HTTPS based Web API.
When I test the program from an interactive shell, as root, it works just fine.
When it runs from the post-commit script, it errors out, and the response from LWP is along the lines of “500 Connect failed”.
There’s some evidence that when run from the post-commit script, SS isn’t enabled, because when I set $ENV{HTTPS_DEBUG} =1; and run it as root, I see debug output, such as
SSL_connect:before/connect initialization
but from the post-commit script, non of the SLL debug info is printed.
- The the
post-commitscript runs as userapache. - I’m running CentOS 64bit.
It’s been years since I’ve done any Unix work, so I’m not sure what the next steps are to get SSL working in this case.
I had to run this:
to allow the httpd process to make network connections