chg: [REST] Disable all SSL validation if requested by the user

pull/4308/head
iglocska 2019-03-14 18:14:01 +01:00 committed by mokaddem
parent 3bd56a102f
commit 6699bb003c
1 changed files with 2 additions and 0 deletions

View File

@ -1585,6 +1585,8 @@ class ServersController extends AppController
}
if (!empty($request['skip_ssl_validation'])) {
$params['ssl_verify_peer'] = false;
$params['ssl_verify_host'] = false;
$params['ssl_allow_self_signed'] = true;
}
$params['timeout'] = 300;
App::uses('HttpSocket', 'Network/Http');