use warnings; use strict; use LWP; use HTTP::Message; # For TLS connection use LWP::Protocol::https; use Crypt::SSLeay; # TLS stuff $ENV{HTTPS_DEBUG} = 1; $ENV{HTTPS_VERSION} = 3; $ENV{'HTTPS_CERT_FILE'} = '/opt/CT/certs/EHR_ICA.ihe.net.pem'; $ENV{'HTTPS_KEY_FILE'} = '/opt/CT/requests/EHR_ICA.ihe.net.pem'; my $req = HTTP::Request->new(POST => $self->{'endpoint'}); # ... #### $ perl -w xds_qry.pl Enter PEM pass phrase: SSL_connect:before/connect initialization SSL_connect:SSLv3 write client hello A SSL_connect:failed in SSLv3 read server hello A Enter PEM pass phrase: SSL_connect:before/connect initialization SSL_connect:SSLv2 write client hello A SSL_connect:failed in SSLv2 read server hello A syntax error at line 1, column 0, byte 0: 500 SSL negotiation failed: ^ at /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/XML/Parser.pm line 187