Skip to content
New issue

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

Attribute size is validated in number of characters, not bytes #124

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hablutzel1
Copy link

From RFC 5280, "Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile", "4.1.2.4. Issuer":

The type of the component AttributeValue is determined by the AttributeType;
in general it will be a DirectoryString.

From ITU-T Rec. X.680 (11/2008), "Information technology – Abstract Syntax Notation One (ASN.1): Specification of basic notation", "51.5 Size constraint":

51.5 Size constraint
...
51.5.4 The unit of measure depends on the parent type, as follows:
Type               Unit of measure
bit                  string bit
octet              string octet
character     string character
set-of             component value
sequence-of   component value

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant