diff options
-rw-r--r-- | functions/crl.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/functions/crl.php b/functions/crl.php index 362a01c..af934da 100644 --- a/functions/crl.php +++ b/functions/crl.php @@ -37,6 +37,10 @@ function crl_verify($raw_cert_data, $verbose=true) { $ch = curl_init(($uri)); curl_setopt($ch, CURLOPT_TIMEOUT, 5); curl_setopt($ch, CURLOPT_FILE, $fp); + curl_setopt($ch, CURLOPT_FAILONERROR, true); + curl_setopt($ch, CURLOPT_FRESH_CONNECT, true); + curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); + curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); if(curl_exec($ch) === false) { |