allowing CA file to be specified seperate from SSL key and cert to allow for host name verification only, thanks to "IMBS David" <david.imbs@open-groupe.com>
This commit is contained in:
parent
80abdf03e3
commit
f3e60356ec
@ -366,10 +366,12 @@ sub request {
|
|||||||
|
|
||||||
$ua->ssl_opts(SSL_cert_file => $self->getCert);
|
$ua->ssl_opts(SSL_cert_file => $self->getCert);
|
||||||
$ua->ssl_opts(SSL_key_file => $self->getKey);
|
$ua->ssl_opts(SSL_key_file => $self->getKey);
|
||||||
if(my $ca = $self->getCa){
|
}
|
||||||
croak "REST::Client exception: Cannot read CA file" unless -f $ca;
|
|
||||||
$ua->ssl_opts(SSL_ca_file => $ca);
|
#prime LWP with CA file if we have one
|
||||||
}
|
if(my $ca = $self->getCa){
|
||||||
|
croak "REST::Client exception: Cannot read CA file" unless -f $ca;
|
||||||
|
$ua->ssl_opts(SSL_ca_file => $ca);
|
||||||
}
|
}
|
||||||
|
|
||||||
#prime LWP with PKCS12 certificate if we have one
|
#prime LWP with PKCS12 certificate if we have one
|
||||||
|
Loading…
x
Reference in New Issue
Block a user