Re: How to restrict the set of CAs? (HTTPS_CA_FILE, HTTPS_CA_DIR)

Dirk-Willem van Gulik <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.lwp
Message-ID <[email protected]>
On 1 Feb 2010, at 16:34, Stanisław T. Findeisen wrote:

> Dirk-Willem van Gulik wrote:
> > On 1 Feb 2010, at 14:54, Stanisław T. Findeisen wrote:
> >
> >> HTTPS_CA_FILE ...
> >
> > If I recall correctly (and this may be a few years out of date) - this only works if you are relying on Net::SSL as the underlying SSL library. It aint work with IO::Socket::SSL.
> 
> Good. How to use it? I thought "use LWP::UserAgent;" does the job? : http://search.cpan.org/~dland/Crypt-SSLeay-0.57/SSLeay.pm

They bubble up through there; though the latter supports SSL_ca_file and SSL_ca_path. 

I think that the structure under the covers is
	Crypt::SSLeay
	    Net::SSL
or
	Net::SSLeay
	    Net::SSLeay::Handle
	    IO::Socket::SSL
	        Net::Server::Proto::SSL

But I'll leave the proper perl heads to reply :)

Dw.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.