Bug #77490

geturl stream context doesn't respect ssl_* settings

Added by Jochen Weber over 4 years ago. Updated over 2 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
System/Bootstrap/Configuration
Target version:
-
Start date:
2016-08-12
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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


Related issues

Related to TYPO3 Core - Bug #75908: Respect ssl_verify_peer, ssl_verify_host and ssl_capath settings for curl requests not only in case of using curlProxyServerRejectedPetra Arentzen2016-04-25

Actions
#1

Updated by Gerrit Code Review over 3 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

#2

Updated by Gerrit Code Review over 3 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

#3

Updated by Gerrit Code Review over 3 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

#4

Updated by Gerrit Code Review over 2 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

#5

Updated by Gerrit Code Review over 2 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

#6

Updated by Christian Kuhn over 2 years ago

  • Status changed from Under Review to Rejected

Also available in: Atom PDF