File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments