diff options
author | Chris Buechler <cmb@pfsense.org> | 2015-04-03 15:00:30 -0500 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2015-04-03 15:01:05 -0500 |
commit | 91957c4239443dfa813235b86748a57b938a4c4e (patch) | |
tree | cb9b155e88e6331af5ad1705892bd9d300e7bf53 /etc/inc/pfsense-utils.inc | |
parent | f6f1180057e07327acf0bf79cdf0f9789bdcc859 (diff) | |
download | pfsense-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.inc | 4 |
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); |