mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Fix peer verification
This commit is contained in:
parent
e2c303b2b9
commit
5c722c6665
1 changed files with 1 additions and 6 deletions
|
@ -413,12 +413,7 @@ class CakeSocket {
|
|||
* @see stream_context_set_option
|
||||
*/
|
||||
public function enableSelfSigned() {
|
||||
$options['ssl'] = array(
|
||||
'allow_self_signed' => true,
|
||||
'verify_peer' => false,
|
||||
'verify_peer_name' => false
|
||||
);
|
||||
return stream_context_set_option($this->connection, $options);
|
||||
return stream_context_set_option($this->connection, 'ssl', 'allow_self_signed', true);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue