mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-24 11:05:30 +00:00
X509: set one more parameter to null
This commit is contained in:
parent
6c2798be90
commit
77c757d095
@ -1514,6 +1514,7 @@ class File_X509
|
||||
$cert['tbsCertificate']['subjectPublicKeyInfo']['algorithm']['parameters'] = null;
|
||||
// https://tools.ietf.org/html/rfc3279#section-2.2.1
|
||||
$cert['signatureAlgorithm']['parameters'] = null;
|
||||
$cert['tbsCertificate']['signature']['parameters'] = null;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -138,6 +138,7 @@ aBtsWpliLSex/HHhtRW9AkBGcq67zKmEpJ9kXcYLEjJii3flFS+Ct/rNm+Hhm1l7
|
||||
|
||||
$this->assertArrayHasKey('parameters', $cert['tbsCertificate']['subjectPublicKeyInfo']['algorithm']);
|
||||
$this->assertArrayHasKey('parameters', $cert['signatureAlgorithm']);
|
||||
$this->assertArrayHasKey('parameters', $cert['tbsCertificate']['signature']);
|
||||
}
|
||||
|
||||
private function _encodeOID($oid)
|
||||
|
Loading…
Reference in New Issue
Block a user