Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: LWP UserAgent - Sending Client Certificate connect to remote host

by kabachaa (Novice)
on May 13, 2013 at 20:47 UTC ( #1033354=note: print w/ replies, xml ) Need Help??


in reply to LWP UserAgent - Sending Client Certificate connect to remote host

I tried that change got the same error

<code > ssl_opts => { verify_hostname => 0, SSL_ca_file => 'cert.crt', }; </code>

anything else you can think of that I can look at to narrow down what the problem is ? Thanks!


Comment on Re: LWP UserAgent - Sending Client Certificate connect to remote host
Re^2: LWP UserAgent - Sending Client Certificate connect to remote host
by vsespb (Hermit) on May 13, 2013 at 20:56 UTC
    That's weird, could you pls reply and paste your code again (after you added ssl_opts) ?
      I have 5.8.8 perl installed on our machine. Thanks
      #!/usr/bin/perl -l use strict; use warnings; use HTTP::Headers; use HTTP::Request; use LWP::UserAgent; my $UPDATE_SERVER = "https://something.com"; my $ua = LWP::UserAgent->new; ssl_opts => { verify_hostname => 0, SSL_ca_file => 'ops-cert-O.crt', }; $ua->timeout(10); #$ua->agent(""); my $req = HTTP::Request->new( GET => $UPDATE_SERVER ); my $res = $ua->request($req); print "header ----" . $res->headers_as_string; print "response ---" . $res->as_string;
        I mean code like this:
        #!/usr/bin/perl -l use strict; use warnings; use HTTP::Headers; use HTTP::Request; use LWP::UserAgent; my $UPDATE_SERVER = "https://something.com"; my $ua = LWP::UserAgent->new( ssl_opts => { verify_hostname => 0, SSL_ca_file => 'ops-cert-O.crt', }); $ua->timeout(10); #$ua->agent(""); my $req = HTTP::Request->new( GET => $UPDATE_SERVER ); my $res = $ua->request($req); print "header ----" . $res->headers_as_string; print "response ---" . $res->as_string;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1033354]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (14)
As of 2014-07-30 18:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (239 votes), past polls