my $mech = LWP::UserAgent->new(ssl_opts => { SSL_key_file => $key_path, SSL_passwd_cb => sub { return $pass; }, SSL_ca_file => $ca_path, SSL_cert_file => $crt_path, verify_hostname => 1, SSL_version => 'TLSv1' }); my $content = $mech->get($url); print Dumper($content);