mirror of https://github.com/MISP/MISP
chg: [REST] Disable all SSL validation if requested by the user
parent
3bd56a102f
commit
6699bb003c
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue