summaryrefslogtreecommitdiffstats
path: root/functions/crl.php
diff options
context:
space:
mode:
authorRemy <relst@relst.nl>2015-03-27 20:23:10 +0100
committerRemy <relst@relst.nl>2015-03-27 20:23:10 +0100
commite57f58342cc08f95f30aaa3bb3760857b8df7bc6 (patch)
tree512fe9366d0931b33e9a16d6bf8f10ff6a1db6a1 /functions/crl.php
parent806c7578f6249d66278b0e510137cff2096a55af (diff)
downloadssl-decoder-e57f58342cc08f95f30aaa3bb3760857b8df7bc6.zip
ssl-decoder-e57f58342cc08f95f30aaa3bb3760857b8df7bc6.tar.gz
ssl-decoder-e57f58342cc08f95f30aaa3bb3760857b8df7bc6.tar.bz2
fix #3; not check certificate of crl uri
Diffstat (limited to 'functions/crl.php')
-rw-r--r--functions/crl.php4
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)
{