Attempt workaround for repo.packagist.org domain SSL on very old PHP, fixes #7530
parent
7ea15eec6c
commit
a28808752d
|
@ -761,6 +761,9 @@ class RemoteFilesystem
|
||||||
|
|
||||||
$tlsOptions['ssl']['CN_match'] = $certMap['cn'];
|
$tlsOptions['ssl']['CN_match'] = $certMap['cn'];
|
||||||
$tlsOptions['ssl']['peer_fingerprint'] = $certMap['fp'];
|
$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