1
0
mirror of https://github.com/danog/phpseclib.git synced 2024-12-12 17:17:26 +01:00

X509: publicKey wasn't being loaded for CSRs / SPKACs

This commit is contained in:
terrafrost 2020-05-31 02:11:44 -05:00
parent 0bda2b4573
commit c2ab2a4884

View File

@ -2194,12 +2194,12 @@ class X509
chunk_split(base64_encode($key), 64) .
"-----END PUBLIC KEY-----";
$this->publicKey = null;
$this->publicKey = $this->getPublicKey();
$this->currentKeyIdentifier = null;
$this->currentCert = $csr;
$this->publicKey = null;
$this->publicKey = $this->getPublicKey();
return $csr;
}
@ -2305,12 +2305,12 @@ class X509
chunk_split(base64_encode($key), 64) .
"-----END PUBLIC KEY-----";
$this->publicKey = null;
$this->publicKey = $this->getPublicKey();
$this->currentKeyIdentifier = null;
$this->currentCert = $spkac;
$this->publicKey = null;
$this->publicKey = $this->getPublicKey();
return $spkac;
}