Bundle root certificates

This commit is contained in:
Lucas Bartholemy 2015-04-12 19:40:29 +02:00
parent 67b24d5bc7
commit f5e732e0d8
2 changed files with 3863 additions and 1 deletions

3860
protected/config/cacert.pem Normal file

File diff suppressed because it is too large Load Diff

View File

@ -243,9 +243,11 @@ class OnlineModuleManager
CURLOPT_SSL_VERIFYPEER => (Yii::app()->getModule('admin')->marketplaceApiValidateSsl) ? true : false,
CURLOPT_SSL_VERIFYHOST => (Yii::app()->getModule('admin')->marketplaceApiValidateSsl) ? 2 : 0,
CURLOPT_REDIR_PROTOCOLS => CURLPROTO_HTTP | CURLPROTO_HTTPS,
CURLOPT_PROTOCOLS => CURLPROTO_HTTP | CURLPROTO_HTTPS
CURLOPT_PROTOCOLS => CURLPROTO_HTTP | CURLPROTO_HTTPS,
CURLOPT_CAINFO => Yii::app()->getBasePath() . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'cacert.pem'
);
if (HSetting::Get('enabled', 'proxy')) {
$options[CURLOPT_PROXY] = HSetting::Get('server', 'proxy');
$options[CURLOPT_PROXYPORT] = HSetting::Get('port', 'proxy');