Attempt workaround for repo.packagist.org domain SSL on very old PHP, fixes #7530
parent
a74b63985e
commit
e7a9bd3362
|
@ -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';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue