Allowed https connections with consoles with self-signed certificates
This commit is contained in:
parent
b56cb02761
commit
f7522fcf3f
|
@ -1164,6 +1164,15 @@ sub pandora_execute_action ($$$$$$$$$;$) {
|
|||
|
||||
# API connection
|
||||
my $ua = new LWP::UserAgent;
|
||||
eval {
|
||||
$ua->ssl_opts( 'verify_hostname' => 0 );
|
||||
$ua->ssl_opts( 'SSL_verify_mode' => 0x00 );
|
||||
};
|
||||
if ( $@ ) {
|
||||
logger($pa_config, "Failed to limit ssl security on console link: " . $@, 10);
|
||||
}
|
||||
|
||||
|
||||
my $url ||= $pa_config->{"console_api_url"};
|
||||
|
||||
my $params = {};
|
||||
|
|
Loading…
Reference in New Issue