mannclay has asked for the wisdom of the Perl Monks concerning the following question:

Hello Monks!

I'm using Mechanize 1.71 to access a site that defaults to using sslv3. The error i'm getting is:

Can't connect to [[WEBSITE]] LWP::Protocol::https::Socket: SSL connect attempt failed with unknown errorerror:14077417:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert illegal parameter at /usr/local/ActivePerl-5.14/site/lib/LWP/Protocol/http.pm line 51

I have tried using use Crypt::SSLeay and setting $ENV{HTTPS_VERSION} = 3 but still the same error. Any help or hints would be fantabulous, thanks.

Replies are listed 'Best First'.
Re: mechanize and sslv3
by Anonymous Monk on Feb 01, 2012 at 17:43 UTC
    Sounds bad: http://www.openssl.org/docs/ssl/SSL_alert_type_string.html

    Which hostname are you connecting to?

      im trying to connect to "https://banweb8.howard.edu:9000/PROD/twbkwbis.P_WWWLogin" with credentials as @ARGVs
        The server does not support TLS, see <http://enwp.org/Transport_Layer_Security#TLS_1.0>. Notify the sysadmins that they should get their collective shit together and upgrade the security. They're lagging a whole decade behind!

        Meanwhile, you can work around the problem by falling back to SSL. Add the option to the constructor:

        WWW::Mechanize->new(ssl_opts => { SSL_version => 'SSLv3' })