Project

General

Profile

Bug #4766 » fix_4766.patch

Fix #4766 Download file from HTTPS server with self-signed certificate - Marcelo Matos, 11/04/2016 11:32 AM

View differences:

src/etc/inc/pfsense-utils.inc
1936 1936
	$ch = curl_init();
1937 1937
	curl_setopt($ch, CURLOPT_URL, $url);
1938 1938
	curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, $verify_ssl);
1939
	curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, $verify_ssl);
1939 1940
	curl_setopt($ch, CURLOPT_FILE, $fp);
1940 1941
	curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $connect_timeout);
1941 1942
	curl_setopt($ch, CURLOPT_TIMEOUT, $timeout);
(2-2/2)