summaryrefslogtreecommitdiffstats
path: root/etc/inc/pfsense-utils.inc
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2015-04-03 15:00:30 -0500
committerChris Buechler <cmb@pfsense.org>2015-04-03 15:01:05 -0500
commit91957c4239443dfa813235b86748a57b938a4c4e (patch)
treecb9b155e88e6331af5ad1705892bd9d300e7bf53 /etc/inc/pfsense-utils.inc
parentf6f1180057e07327acf0bf79cdf0f9789bdcc859 (diff)
downloadpfsense-91957c4239443dfa813235b86748a57b938a4c4e.zip
pfsense-91957c4239443dfa813235b86748a57b938a4c4e.tar.gz
verify certs by default here
Diffstat (limited to 'etc/inc/pfsense-utils.inc')
-rw-r--r--etc/inc/pfsense-utils.inc4
1 files changed, 1 insertions, 3 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index 88a1564..f969ada 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -1755,7 +1755,7 @@ function get_freebsd_version() {
return $version[0];
}
-function download_file($url, $destination, $verify_ssl = false, $connect_timeout = 60, $timeout = 0) {
+function download_file($url, $destination, $verify_ssl = true, $connect_timeout = 60, $timeout = 0) {
global $config, $g;
$fp = fopen($destination, "wb");
@@ -1809,8 +1809,6 @@ function download_file_with_progress_bar($url_file, $destination_file, $readbody
curl_setopt($ch, CURLOPT_URL, $url_file);
curl_setopt($ch, CURLOPT_HEADERFUNCTION, 'read_header');
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
- /* Don't verify SSL peers since we don't have the certificates to do so. */
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_WRITEFUNCTION, $readbody);
curl_setopt($ch, CURLOPT_NOPROGRESS, '1');
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $connect_timeout);
OpenPOWER on IntegriCloud