Skip Menu |

This queue is for tickets about the HTTP-Async CPAN distribution.

Report information
The Basics
Id: 86096
Status: resolved
Priority: 0/
Queue: HTTP-Async

People
Owner: Nobody in particular
Requestors: hvn [...] open.com.au
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Patch: Pass SSL_ options to Net::HTTPS::NB
Date: Wed, 12 Jun 2013 21:15:31 +0300
To: bug-HTTP-Async [...] rt.cpan.org
From: Heikki Vatiainen <hvn [...] open.com.au>
Starting from version 0.13 Net::HTTPS::NB version will pass all options starting with SSL_ to IO::Socket:SSL->start_SSL(). These options can be used to e.g., enable different kinds of certificates checks. Please consider the attached patch. The patch adds a new $async object config setting called ssl_options. The option value is a hashref where the hash contains the desired SSL_ options. Here's an example where HTTP::Async user wants to create a HTTPS connection with certificate checks enabled: my %ssl_opts = ( SSL_ca_file = '/path/to/CA.pem', ... ); ... my $async = HTTP::Async->new( slots => 20, ssl_options => \%ssl_opts, ); This patch is against HTTP::Async version 0.18. -- Heikki Vatiainen <hvn@open.com.au> Radiator: the most portable, flexible and configurable RADIUS server anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald, Platypus, Freeside, TACACS+, PAM, external, Active Directory, EAP, TLS, TTLS, PEAP, TNC, WiMAX, RSA, Vasco, Yubikey, MOTP, HOTP, TOTP, DIAMETER etc. Full source on Unix, Windows, MacOSX, Solaris, VMS, NetWare etc.

Message body is not shown because sender requested not to inline it.

Great, thanks Heikki! I'll see if I can take a look at this in the next few days. On Wed Jun 12 14:15:54 2013, hvn@open.com.au wrote: Show quoted text
> Starting from version 0.13 Net::HTTPS::NB version will pass all options > starting with SSL_ to IO::Socket:SSL->start_SSL(). These options can be > used to e.g., enable different kinds of certificates checks. > > Please consider the attached patch. The patch adds a new $async object > config setting called ssl_options. The option value is a hashref where > the hash contains the desired SSL_ options. > > Here's an example where HTTP::Async user wants to create a HTTPS > connection with certificate checks enabled: > > my %ssl_opts = ( > SSL_ca_file = '/path/to/CA.pem', > ... > ); > ... > > my $async = HTTP::Async->new( > slots => 20, > ssl_options => \%ssl_opts, > ); > > This patch is against HTTP::Async version 0.18. >
Hey Heikki, This is fixed in 0.19. You can find it here: https://github.com/evdb/HTTP-Async And it will be on the CPAN soon! - Alex