Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: HTTP::Tiny ssl opt

by 1nickt (Canon)
on Mar 28, 2017 at 14:09 UTC ( [id://1186252]=note: print w/replies, xml ) Need Help??


in reply to HTTP::Tiny ssl opt

Hi bigup401,

Read a little closer and you'll see that the syntax is:

my $ua = HTTP::Tiny->new( verify_SSL => 0, );
... and that the attribute is set to off by default so you don't need to specify anything if you don't want to perform the check:

  • "verify_SSL — A boolean that indicates whether to validate the SSL certificate of an https — connection (default is false)"

Hope this helps!


The way forward always starts with a minimal test.

Replies are listed 'Best First'.
Re^2: HTTP::Tiny ssl opt
by bigup401 (Pilgrim) on Mar 28, 2017 at 14:51 UTC

    well am getting this error when running the code. the procedure entry point ssl_get0_next_proto_negotiated could not be located in dynamic link library SSLEAY32

    but when running LWP module i can easily use ssl_opts => { verify_hostname => 0 to ignore ssl verify . now in http::tiny seems not work. when u use https. the docmenations tells validate the SSL certificate of an https — connection (default is false) but still the problem still occur

      Hi again,

      ( Please put your error message inside <code></code> tags, like with code, as it helps to read it and separate it from your message. )

      Did you read all the documentation for HTTP::Tiny including the section SSL Support ?

      • "Direct https connections are supported only if IO::Socket::SSL 1.56 or greater and Net::SSLeay 1.49 or greater are installed. An exception will be thrown if new enough versions of these modules are not installed or if the SSL encryption fails. You can also use HTTP::Tiny::can_ssl() utility function that returns boolean to see if the required modules are installed."

      Have you verified that you have the necessary versions of those dependencies?

      Have you used the provided method HTTP::Tiny->can_ssl() to see whether you have the needed dependencies?

      Please let us know.


      The way forward always starts with a minimal test.

        i have tried everything bt http::tiny still validating ssl.

        no way i can disable SSL certificate verification

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-04-20 01:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found