fixed import of yet untrusted certificates
This commit is contained in:
parent
1a1d28a8af
commit
4f3eb2f7bb
|
@ -1269,7 +1269,7 @@ function getRandomNumber() {
|
||||||
* @return mixed false on error and certificate if extracted successfully
|
* @return mixed false on error and certificate if extracted successfully
|
||||||
*/
|
*/
|
||||||
function getLDAPSSLCertificate($server, $port) {
|
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) {
|
if (!$stream) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +1,2 @@
|
||||||
/*.jpg
|
/*.jpg
|
||||||
|
/*.pem
|
||||||
|
|
Loading…
Reference in New Issue