Skip to content
Permalink
Browse files

Fix peer verification

  • Loading branch information...
Iandenh committed Oct 2, 2015
1 parent e2c303b commit 5c722c666578df3e9710ae60372837c597b88099
Showing with 1 addition and 6 deletions.
  1. +1 −6 lib/Cake/Network/CakeSocket.php
@@ -413,12 +413,7 @@ public function enableCrypto($type, $clientOrServer = 'client', $enable = true)
* @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);
}
}

0 comments on commit 5c722c6

Please sign in to comment.
You can’t perform that action at this time.