We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 282cbe0 commit 0070f33Copy full SHA for 0070f33
lib/Authentication/Util/Cache.php
@@ -28,11 +28,11 @@ public function updateCache($filePath, $merchantConfig)
28
29
if (openssl_pkcs12_read($certStore, $certs, $keyPass)) {
30
$privateKey = $certs['pkey'];
31
- if (!empty($merchantConfig->getKeyAlias())) {
32
- $publicKey = Utility::findCertByAlias($certs, $merchantConfig->getKeyAlias());
33
- } else {
34
- $publicKey = $certs['cert'];
+ $keyAlias = $merchantConfig->getKeyAlias();
+ if (empty($keyAlias)) {
+ $keyAlias = $merchantConfig->getMerchantID();
35
}
+ $publicKey = Utility::findCertByAlias($certs, $keyAlias);
36
$publicKey = $this->PemToDer($publicKey);
37
38
0 commit comments