Skip to content

Explicitly add hostname for SNI to start_SSL (Fix libwww-perl#57)#17

Merged
genio merged 1 commit intolibwww-perl:masterfrom
noxxi:sni-fix
Feb 20, 2017
Merged

Explicitly add hostname for SNI to start_SSL (Fix libwww-perl#57)#17
genio merged 1 commit intolibwww-perl:masterfrom
noxxi:sni-fix

Conversation

@noxxi
Copy link
Contributor

@noxxi noxxi commented Jul 14, 2014

Sometimes IO::Socket::SSL fails to detect the proper hostname for SNI from PeerHost inside start_SSL.
This way the name is explicitly given. This fixes issue libwww-perl/libwww-perl#57.

Sometimes IO::Socket::SSL fails to detect the proper hostname for SNI from PeerHost inside start_SSL.
This way the name is explicitly given.
@noxxi noxxi changed the title Explicitly add hostname for SNI to start_SSL Explicitly add hostname for SNI to start_SSL (Fix libwww-perl#57) Jul 14, 2014
@droidxna
Copy link

my $ua = LWP::UserAgent->new(ssl_opts => { SSL_hostname => '', SSL_verifycn_name => '' , SSL_verify_mode => 0x00, verify_hostname => 0 });

@oalders
Copy link
Member

oalders commented Feb 19, 2017

Looks good to me.

@oschwald
Copy link

It would be great to get this merged. We have been running a fork based on #24 since we ran into this a year and a half ago.

@genio genio merged commit 506d779 into libwww-perl:master Feb 20, 2017
genio added a commit that referenced this pull request Feb 20, 2017
@oalders
Copy link
Member

oalders commented Feb 20, 2017

New release is now on CPAN.

goetzk added a commit to UniTasLibrary/DataCiteDoi that referenced this pull request Aug 30, 2018
Work in progress code to change from LWP to WWW::Curl. This has been forced
upon us by the age of LWP in RHEL6.10 which can't handle SNI servers.
See also
curl/curl#700 - Curl updates in RHEL 6.7 and 6.8
libwww-perl/LWP-Protocol-https#17 LWP SNI fix from 6.07
goetzk added a commit to eprintsug/DataCiteDoi that referenced this pull request Oct 4, 2018
Offer WWW::Curl as an option for API connections

The cause of this development was the age of LWP in RHEL6.10 can't handle SNI servers - used by DataCite for their API.

For more on the LWP age issue and curl updates which ensure it works see these issues.
libwww-perl/LWP-Protocol-https#17 LWP SNI fix from 6.07
curl/curl#700 - Curl updates in RHEL 6.7 and 6.8

This branch/change allows curl to be used opt in, defaulting to LWP, and should not change any existing behaviours (those breaking changes were in #23 and #33).

There are also some other changes which have come through as I've tried to keep various files (like configuration and README) in sync.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants