Skip to content

Commit e984eb6

Browse files
committed
Fix incorrect SSL-settings
1 parent 3146154 commit e984eb6

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/EntitySource.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,15 +134,15 @@ private function downloadMetadata(): EntitiesDescriptor|EntityDescriptor|null
134134
Logger::debug($this->logLoc . 'Downloading metadata from ' . var_export($this->url, true));
135135
$configUtils = new Utils\Config();
136136

137-
$context = ['ssl' => []];
137+
$context = [];
138138
if ($this->sslCAFile !== null) {
139-
$context['ssl']['cafile'] = $configUtils->getCertPath($this->sslCAFile);
139+
$context['cafile'] = $configUtils->getCertPath($this->sslCAFile);
140140
Logger::debug(
141141
$this->logLoc . 'Validating https connection against CA certificate(s) found in ' .
142142
var_export($context['ssl']['cafile'], true),
143143
);
144-
$context['ssl']['verify_peer'] = true;
145-
$context['ssl']['CN_match'] = parse_url($this->url, PHP_URL_HOST);
144+
$context['verify_peer'] = true;
145+
$context['CN_match'] = parse_url($this->url, PHP_URL_HOST);
146146
}
147147

148148
try {

0 commit comments

Comments
 (0)