in reply to Re^2: HTTPS connection with LWP and self-signed certificate ( openssl/ssldump )
in thread HTTPS connection with LWP and self-signed certificate

Hmm... https://metacpan.org/pod/IO::Socket::SSL#Common-Problems-with-SSL says
Also, util/analyze-ssl.pl in the distribution might be a helpful tool when debugging SSL problems, as do the openssl command line tool and a check with a different SSL implementation (e.g. a web browser).

So I'd try that next :)

  • Comment on Re^3: HTTPS connection with LWP and self-signed certificate ( openssl/ssldump )

Replies are listed 'Best First'.
Re^4: HTTPS connection with LWP and self-signed certificate ( openssl/ssldump )
by Anonymous Monk on Jan 07, 2015 at 12:46 UTC

    I read that page which gave me the idea to enable debugging. It all works fine with a browser, the openssl commandline tool and the perl script with "verify_hostname=0" the different methods mention that the certificate is self-signed but the ssl connection is established just fine. To me this sounds like the problem is restricted purely to the certificate verification and not to say setting up the ssl encryption.

    I would think that supplying the certificate to LWP and telling it to accept that certificate would be enough to make it work without turning the verification of....

    As for the "util/analyze-ssl.pl", I don't know where to find that script. What do they mean by "in the distribution", which distribution?

        I was looking for it on my system as I assumed I would have gotten it when installing libio-socket-ssl-perl via the package manager. Apparently the version in the repos did not have this script yet, which is why I couldn't find it.

        I tried running the script but it complains about a version mismatch so I'll try to install the latest IO::Socket::SSL via cpan after I get back from work and see if the analyze-ssl utility gives me some more information.

        I'll update the thread if I find something,

        Thanks to everyone who has been trying to help so far! I'm hopeful that I'll be able to solve this with your help