mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-09 23:31:00 +00:00
X509: set-up key identifier upon certificate loading.
This commit is contained in:
parent
4f634aaca8
commit
73b0d05ddc
@ -1269,6 +1269,9 @@ class File_X509 {
|
||||
$this->currentCert = $x509;
|
||||
$this->dn = $x509['tbsCertificate']['subject'];
|
||||
|
||||
$keyIdentifier = $this->getExtension('id-ce-subjectKeyIdentifier');
|
||||
$this->keyIdentifier = is_string($keyIdentifier) ? $keyIdentifier : NULL;
|
||||
|
||||
return $x509;
|
||||
}
|
||||
|
||||
@ -2189,6 +2192,7 @@ class File_X509 {
|
||||
$this->publicKey = NULL;
|
||||
}
|
||||
|
||||
$this->keyIdentifier = NULL;
|
||||
$this->currentCert = $csr;
|
||||
|
||||
return $csr;
|
||||
|
Loading…
Reference in New Issue
Block a user