Fix peer verification

This commit is contained in:
Ian den Hartog 2015-10-02 10:04:17 +02:00
parent e2c303b2b9
commit 5c722c6665

View file

@ -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);
}
}