Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Perl script error "500 SSL negotiation failed"

Perl script error "500 SSL negotiation failed"

Perl script error "500 SSL negotiation failed"

Very new to perl and got handed something to figure out and not having any luck.
The script should be connecting via TLS1.2 to a URL with an action. But I'm getting negotiation failures.

#!/usr/bin/perl -w
use Net::HTTPS;
use LWP::UserAgent;
use Crypt::SSLeay;
# Normally remarked out:
use LWP::Debug qw(+);
# Normally remrked out:
my ($INFILE, $srequest) = @ARGV;
my ($ACTION_TYPE) = @ARGV[1];
my ($SOAP_ACTION) = @ARGV[2];
my $XMLROOT = "/X/api/";
my $FAILLOG = "/X/log/failure.log";
my $TARGET = "https://bigip.url.com/IQ/API/$ACTION_TYPE";
my $SUBJECT = "X API";

LWP::Protocol::http::request: ()
SSL_connect:before/connect initialization
SSL_connect:SSLv2/v3 write client hello A
SSL3 alert read:fatal:handshake failure
SSL_connect:error in SSLv2/v3 read server hello A
SSL_connect:before/connect initialization
SSL_connect:SSLv3 write client hello A
SSL3 alert read:fatal:handshake failure
SSL_connect:failed in SSLv3 read server hello A
SSL_connect:before/connect initialization
SSL_connect:SSLv2 write client hello A
SSL_connect:error in SSLv2 read server hello A
LWP::UserAgent::request: Simple response: Internal Server Error

If I test openssl:

openssl s_client -connect url.com:443 -tls1_2
depth=1 C = US, O = GeoTrust Inc., CN = RapidSSL SHA256 CA - G3

Certificate chain
0 s:/CN=*.url.com
i:/C=US/O=GeoTrust Inc./CN=RapidSSL SHA256 CA - G3
1 s:/C=US/O=GeoTrust Inc./CN=RapidSSL SHA256 CA - G3
i:/C=US/O=GeoTrust Inc./CN=GeoTrust Global CA
Server certificate
Protocol : TLSv1.2

Appreciate any assistance.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close