Open oalders opened 7 years ago
ping
If this is still an issue then a pull request with tests (if possible) would help move this along.
Ran into this today.
If you set:
my $ua = LWP::UserAgent->new;
require LWP::Protocol::https;
$ua->ssl_opts( (
SSL_verify_mode => 0,
verify_hostname => 1, # The default is 1
));
you run into this issue which makes sense because if you are verifying the hostname so you cannot disable the ssl verification. _By default verify_hostname is true so SSL_verifymode is set by default
the easiest fix for me was to:
my $ua = LWP::UserAgent->new;
require LWP::Protocol::https;
$ua->ssl_opts( (
SSL_verify_mode => 0, #explicitly disable SSL verification
verify_hostname => 0, #explicitly disable hostname verification
));
Unless I am missing something I am not sure that there is a code change required here. Essentially SSL_verify_mode being false also requires verify_hostname to be false.
It is possible that this is a documentation issue. It is also possible that this is not the intended functionality.
@timlegge maybe we should add something similar to https://github.com/libwww-perl/libwww-perl/commit/7aeb7bc0c704a9dd20802a25e43f3a5080941cac to this module?
@oalders I will look at adding something this week
Migrated from rt.cpan.org#111517 (status was 'open')
Requestors:
From errietta@errietta.me on 2016-01-28 16:53:08:
From errietta@errietta.me on 2016-01-28 16:54:36:
From sune.karlsson@oru.se on 2016-05-15 21:25:35:
From williamt@sonic.net on 2016-07-06 23:24:15:
From williamt@sonic.net on 2016-07-06 23:38:07: