From 06bc17a5f57a3b60e243204c214889ed4b9c2e5a Mon Sep 17 00:00:00 2001 From: Duane Hutchins Date: Wed, 11 Apr 2012 20:59:52 -0400 Subject: [PATCH] Disable Cert Verification --- CHANGELOG.md | 4 ++++ Postmark.php | 1 + 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1b6efb6..efe592e 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ Postmark PHP class changelog ============================ +## 0.4.6 + +* Disable Curl cert verification + ## 0.4.5 * Internally uses constants for recipients diff --git a/Postmark.php b/Postmark.php index 5fc2554..7d54251 100755 --- a/Postmark.php +++ b/Postmark.php @@ -333,6 +333,7 @@ public function send($options = array()) curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); curl_setopt($ch, CURLOPT_CAINFO, dirname(__FILE__) . '/Certificate/cacert.pem'); + curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); $return = curl_exec($ch); $curlError = curl_error($ch);