Bug #77490
closedgeturl stream context doesn't respect ssl_* settings
0%
Description
Hi all.
if ['SYS']['curlUse'] is false, we are using stream context in GeneralUtility::getUrl().
But there the ['HTTP']['ssl_*'] are not respected.
i think something like this is needed:
$sslOptions = array();
$sslOptions['verify_peer'] = $GLOBALS['TYPO3_CONF_VARS']['HTTP']['ssl_verify_peer'];
$sslOptions['verify_peer_name'] = $GLOBALS['TYPO3_CONF_VARS']['HTTP']['ssl_verify_host'];
if ($GLOBALS['TYPO3_CONF_VARS']['HTTP']['ssl_verify_peer']) {
if ($GLOBALS['TYPO3_CONF_VARS']['HTTP']['ssl_cafile']) {
$sslOptions['cafile'] = $GLOBALS['TYPO3_CONF_VARS']['HTTP']['ssl_cafile'];
}
if ($GLOBALS['TYPO3_CONF_VARS']['HTTP']['ssl_capath']) {
$sslOptions['capath'] = $GLOBALS['TYPO3_CONF_VARS']['HTTP']['ssl_capath'];
}
}
stream_context_set_option( $ctx, $sslOptions);
greets, jochen
Updated by Gerrit Code Review over 7 years ago
- Status changed from New to Under Review
Patch set 2 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/49861
Updated by Gerrit Code Review over 7 years ago
Patch set 3 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/49861
Updated by Gerrit Code Review over 7 years ago
Patch set 4 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/49861
Updated by Gerrit Code Review over 6 years ago
Patch set 5 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/49861
Updated by Gerrit Code Review over 6 years ago
Patch set 6 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/49861
Updated by Christian Kuhn over 6 years ago
- Status changed from Under Review to Rejected