1
0
Fork 0

Attempt workaround for repo.packagist.org domain SSL on very old PHP, fixes #7530

pull/7534/head
Jordi Boggiano 2018-08-07 08:11:10 +02:00
parent a74b63985e
commit e7a9bd3362
1 changed files with 3 additions and 0 deletions

View File

@ -761,6 +761,9 @@ class RemoteFilesystem
$tlsOptions['ssl']['CN_match'] = $certMap['cn'];
$tlsOptions['ssl']['peer_fingerprint'] = $certMap['fp'];
} elseif (!CaBundle::isOpensslParseSafe() && $host === 'repo.packagist.org') {
// handle subjectAltName for packagist.org's repo domain on very old PHPs
$tlsOptions['ssl']['CN_match'] = 'packagist.org';
}
}