mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-12 09:09:39 +01:00
X509: publicKey wasn't being loaded for CSRs / SPKACs
This commit is contained in:
parent
0bda2b4573
commit
c2ab2a4884
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user