fix: [rest client] Potential fix to the skip ssl validation flag not working on wrong CN name

pull/4949/head
iglocska 2019-07-31 14:10:19 +02:00
parent dc0f4741be
commit 5f9e04aa4f
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 1 additions and 0 deletions

View File

@ -1760,6 +1760,7 @@ class ServersController extends AppController
if (!empty($request['skip_ssl_validation'])) {
$params['ssl_verify_peer'] = false;
$params['ssl_verify_host'] = false;
$params['ssl_verify_peer_name'] = false;
$params['ssl_allow_self_signed'] = true;
}
$params['timeout'] = 300;