- . , HTTPS. , , . , .
- . SSL_ca_file:
my $ua = LWP::UserAgent->new;
$ua->ssl_opts(SSL_ca_file => 'rootCA.pem');
$ua->get('https://127.0.0.1:8080');
CA, " ".
, "127.0.0.1", " ", URL-. , :
my $ua = LWP::UserAgent->new;
$ua->ssl_opts(
SSL_ca_file => 'rootCA.pem',
SSL_verifycn_name => 'www.example.com',
);
$ua->get('https://127.0.0.1:8080');
, SSL_ca_file , CA true, CA, . , , .., , .
my $ua = LWP::UserAgent->new;
$ua->ssl_opts(SSL_fingerprint => 'sha1$9AA5CFED857445259D90FE1B56B9F003C0187BFF')
$ua->get('https://127.0.0.1:8080');
, openssl x509 -noout -in rootCA.pem -fingerprint -sha1, (sha1$...) .