- or download this
$rp{'ca_cert_file'} = 'rootCA.pem';
$rp{'ca_cert_dir'} = '.';
$rp{'SSL_cert_file'} = 'client.crt';
$rp{'SSL_key_file'} = 'client.key';
- or download this
my $self = {
logger => '',
user => $params{user},
...
SSL_key_file => $params{SSL_key_file},
};
bless $self, $class;
- or download this
$self->{ua}->ssl_opts(SSL_ca_file => $self->{ca_cert_file}
+)
if $self->{ca_cert_file};
$self->{ua}->ssl_opts(SSL_ca_path => $self->{ca_cert_dir})
...
if $self->{SSL_cert_file};
$self->{ua}->ssl_opts(SSL_key_file => $self->{SSL_key_file
+})
if $self->{SSL_key_file};