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'});
# ...
I installed the certificate and passkey files, but when I run my script, here is what I get:
$ 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/Par
+ser.pm line 187
It seems strange to me that the passkey prompt comes up in the first place. I tried a few options, but they didn't work. |