Project

General

Profile

Actions

Bug #77490

closed

geturl stream context doesn't respect ssl_* settings

Added by Jochen Weber over 7 years ago. Updated about 6 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 1 (0 open1 closed)

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
Actions #1

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

Actions #2

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

Actions #3

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

Actions #4

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

Actions #5

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

Actions #6

Updated by Christian Kuhn about 6 years ago

  • Status changed from Under Review to Rejected
Actions

Also available in: Atom PDF