Comments (5)
@oalders I will look at adding something this week
from lwp-protocol-https.
ping
from lwp-protocol-https.
If this is still an issue then a pull request with tests (if possible) would help move this along.
from lwp-protocol-https.
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_verify_mode 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.
from lwp-protocol-https.
@timlegge maybe we should add something similar to libwww-perl/libwww-perl@7aeb7bc to this module?
from lwp-protocol-https.
Related Issues (20)
- apache.t fails due to firewall [rt.cpan.org #85957] HOT 1
- tests passes when prereq IO::Socket::SSL not met [rt.cpan.org #88594] HOT 1
- TODO for next release: include openssl diagnostics [rt.cpan.org #105870] HOT 2
- Tests fail with HTTPS_PROXY set [rt.cpan.org #117479] HOT 18
- LWP::Protocol::https/_check_sock() has insufficient certificate checking [rt.cpan.org #43733]
- Old Bug, Revisited: Peer certificate not verified [rt.cpan.org #61340] HOT 1
- Crypt::SSLeay should work transparently with Mozilla::CA [rt.cpan.org #66561] HOT 1
- HTTPS authentication error hangs instead of returning authentication error. Fix included. [rt.cpan.org #66657]
- t/apache.t fails: connection refused [rt.cpan.org #67001] HOT 1
- X-Died header appears in apache.t [rt.cpan.org #91653]
- debian squeeze - perl update - error cpan LWP::Protocol::https [rt.cpan.org #105889] HOT 1
- Proxy test failures HOT 1
- [PRC] How may I be of help HOT 3
- https_proxy.t hangs on perl 5.27.8, Windows HOT 2
- tests failed on install with cpanm HOT 4
- Test 'https_proxy.t' fails on windows 10 HOT 1
- Unable to install on MacOS 12.1 with perl 5.34 HOT 1
- Unable to install this in Ubuntu 20.04 HOT 3
- t/apache.t fails when apache.org changes content HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lwp-protocol-https.