We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Name
Implement encode decode for C509 type Name
Implement encode, decode, and other important functionality for C509 type Name
Given
Name = [ * RelativeDistinguishedName ] / text / bytes RelativeDistinguishedName = Attribute / [ 2* Attribute ] Attribute = ( attributeType: int, attributeValue: text ) // ( attributeType: ~oid, attributeValue: bytes ) // ( attributeType: pen, attributeValue: bytes )
This type Name will be used in various places like GeneralName, subject, and issuer
GeneralName
subject
issuer
Note that Attribute is used in various places
Attribute
Attributes = ( attributeType: int, attributeValue: [+text] ) // ( attributeType: ~oid, attributeValue: [+bytes] ) SubjectDirectoryAttributes = [+Attributes]
Attribute used in RelativeDistinguishedName support PEN Attribute used in Attributes doesn't support PEN and support multiple Attribute value
RelativeDistinguishedName
Attributes
The implementation should follow the c509 documentation https://datatracker.ietf.org/doc/draft-ietf-cose-cbor-encoded-cert/09/
Test cases
attributeValue
Relative Distinguised Name (RDN)
CommonName
RelativeDistinguisedName
The text was updated successfully, but these errors were encountered:
bkioshn
Successfully merging a pull request may close this issue.
Summary
Implement encode decode for C509 type
Name
Description
Implement encode, decode, and other important functionality for C509 type
Name
Given
This type
Name
will be used in various places likeGeneralName
,subject
, andissuer
Note that
Attribute
is used in various placesAttribute
used inRelativeDistinguishedName
support PENAttribute
used inAttributes
doesn't support PEN and support multipleAttribute
valueThe implementation should follow the c509 documentation https://datatracker.ietf.org/doc/draft-ietf-cose-cbor-encoded-cert/09/
Attribute
type decode and encode where it will handle attributeType integer value, unwrapped OID, and PENRelativeDistinguishedName
type decode and encodeName
type decode and encodeGeneralName
to acceptName
typeTest cases
Attribute
Attribute
should work for bothRelativeDistinguishedName
andAttributes
.Attribute
should not have emptyattributeValue
Attributes
shoudl not be empty arrayRelative Distinguised Name (RDN)
Name
Name
CommonName
Name
can contains >= 0RelativeDistinguisedName
if theRelativeDistinguisedName
is providedThe text was updated successfully, but these errors were encountered: