forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
X.509: Extract both parts of the AuthorityKeyIdentifier
Extract both parts of the AuthorityKeyIdentifier, not just the keyIdentifier, as the second part can be used to match X.509 certificates by issuer and serialNumber. Signed-off-by: David Howells <[email protected]> Tested-by: Vivek Goyal <[email protected]>
- Loading branch information
Showing
7 changed files
with
145 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
-- X.509 AuthorityKeyIdentifier | ||
-- rfc5280 section 4.2.1.1 | ||
|
||
AuthorityKeyIdentifier ::= SEQUENCE { | ||
keyIdentifier [0] IMPLICIT KeyIdentifier OPTIONAL, | ||
authorityCertIssuer [1] IMPLICIT GeneralNames OPTIONAL, | ||
authorityCertSerialNumber [2] IMPLICIT CertificateSerialNumber OPTIONAL | ||
} | ||
|
||
KeyIdentifier ::= OCTET STRING ({ x509_akid_note_kid }) | ||
|
||
CertificateSerialNumber ::= INTEGER ({ x509_akid_note_serial }) | ||
|
||
GeneralNames ::= SEQUENCE OF GeneralName | ||
|
||
GeneralName ::= CHOICE { | ||
otherName [0] ANY, | ||
rfc822Name [1] IA5String, | ||
dNSName [2] IA5String, | ||
x400Address [3] ANY, | ||
directoryName [4] Name ({ x509_akid_note_name }), | ||
ediPartyName [5] ANY, | ||
uniformResourceIdentifier [6] IA5String, | ||
iPAddress [7] OCTET STRING, | ||
registeredID [8] OBJECT IDENTIFIER | ||
} | ||
|
||
Name ::= SEQUENCE OF RelativeDistinguishedName | ||
|
||
RelativeDistinguishedName ::= SET OF AttributeValueAssertion | ||
|
||
AttributeValueAssertion ::= SEQUENCE { | ||
attributeType OBJECT IDENTIFIER ({ x509_note_OID }), | ||
attributeValue ANY ({ x509_extract_name_segment }) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters