fixed import of yet untrusted certificates

This commit is contained in:
Roland Gruber 2017-10-07 10:47:42 +02:00
parent 1a1d28a8af
commit 4f3eb2f7bb
2 changed files with 2 additions and 1 deletions

View File

@ -1269,7 +1269,7 @@ function getRandomNumber() {
* @return mixed false on error and certificate if extracted successfully
*/
function getLDAPSSLCertificate($server, $port) {
$stream = @stream_context_create(array("ssl" => array("capture_peer_cert_chain" => true)));
$stream = @stream_context_create(array("ssl" => array("capture_peer_cert_chain" => true, "verify_peer" => false, "allow_self_signed" => true)));
if (!$stream) {
return false;
}

1
lam/tmp/.gitignore vendored
View File

@ -1 +1,2 @@
/*.jpg
/*.pem