How to get a better error message from LWP::UserAgent on missing SSL certificates?by moritz (Cardinal)
|on Aug 31, 2016 at 09:45 UTC||Need Help??|
moritz has asked for the
wisdom of the Perl Monks concerning the following question:
I just spent several hours debugging some code using LWP::UserAgent. The code could be reduced to this:
So pretty much a copy&paste from the LWP::UserAgent docs.
The error message I got was:
After some debugging, strace finally showed me an ENOENT for an SSL CA file, which nudged me into the right direction.
So, my questions are:
This is on a Debian Jessie box with perl 5.20.2, and LWP::UserAgent 6.06.
I'm writing a book on automating deployments and Continuous Delivery. Feedback very welcome!