in reply to LWP SSL Question
From your code you connect to localhost 8443. I doubt, that you have a valid certificate there, e.g. one which can be verified against a trusted CA provided by the Mozilla::CA CA store. Thus it will fail to connect because the certificate can not be validated. You can check this by adding SSL debugging with:
perl -MIO::Socket::SSL=debug10 yourcode.pl
Setting verify_hostname to 0 will not help, because this concerns only the validation of the hostname inside the certificate and not the validation of the certificate against the list of trusted CAs (at least it should, in some versions of LWP it actually disables all verification which is wrong). If you really need to disable verification you should set SSL_verify_mode accordingly (see documentation of IO::Socket::SSL), but in this case you should ask yourself why you use SSL at all.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: LWP SSL Question
by packetstormer (Monk) on Jun 07, 2014 at 18:10 UTC | |
by noxxi (Pilgrim) on Jun 07, 2014 at 19:30 UTC | |
by packetstormer (Monk) on Jun 08, 2014 at 09:56 UTC |