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,11 +366,13 @@ sub request {
|
||||
|
||||
$ua->ssl_opts(SSL_cert_file => $self->getCert);
|
||||
$ua->ssl_opts(SSL_key_file => $self->getKey);
|
||||
}
|
||||
|
||||
#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
|
||||
if($self->getPkcs12){
|
||||
|
Loading…
x
Reference in New Issue
Block a user