From d6bd53ad9d976ac8ba4101067c950659c622ae99 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 6 Oct 2008 21:39:27 +0000 Subject: Do not verify SSL peer, it appears portal.pfsense.org's cert is not cooperative with curl --- packages/autoconfigbackup/autoconfigbackup.php | 1 + 1 file changed, 1 insertion(+) (limited to 'packages/autoconfigbackup/autoconfigbackup.php') diff --git a/packages/autoconfigbackup/autoconfigbackup.php b/packages/autoconfigbackup/autoconfigbackup.php index ae027c4a..65efa7fb 100644 --- a/packages/autoconfigbackup/autoconfigbackup.php +++ b/packages/autoconfigbackup/autoconfigbackup.php @@ -61,6 +61,7 @@ if($_GET['newver'] != "") { curl_setopt($curl_Session, CURLOPT_POST, 1); curl_setopt($curl_Session, CURLOPT_POSTFIELDS, "action=restore&revision={$_GET['newver']}"); curl_setopt($curl_Session, CURLOPT_FOLLOWLOCATION, 1); + curl_setopt($curl_session, CURLOPT_SSL_VERIFYPEER, 0); $data = curl_exec($curl_Session); if (!tagfile_deformat($data, $data, "config.xml")) $input_errors[] = "The downloaded file does not appear to contain an encrypted pfSense configuration."; -- cgit v1.2.3