-
Notifications
You must be signed in to change notification settings - Fork 3k
public_key: Add missing macros #9865
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
base: maint
Are you sure you want to change the base?
public_key: Add missing macros #9865
Conversation
CT Test Results 2 files 17 suites 4m 18s ⏱️ Results for commit 8445094. ♻️ This comment has been updated with latest results. To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass. See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally. Artifacts// Erlang/OTP Github Action Bot |
af8629b
to
fd7eed4
Compare
d7e729b
to
64c3a55
Compare
5b84b31
to
17a932a
Compare
17a932a
to
8445094
Compare
get_asn1_module('FreshestCRL') -> 'PKIX1Implicit-2009'; | ||
get_asn1_module('IssuingDistributionPoint') -> 'PKIX1Implicit-2009'; | ||
get_asn1_module('GeneralNames') -> 'PKIX1Implicit-2009'; | ||
get_asn1_module('Validity') -> 'PKIX1Implicit-2009'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
get_asn1_module('Validity') -> 'PKIX1Implicit-2009'; | |
get_asn1_module('Validity') -> 'PKIX1Explicit-2009'; |
get_asn1_module('Certificate') -> 'PKIX1Explicit-2009'; | ||
get_asn1_module('SubjectAltName') -> 'PKIX1Implicit-2009'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So this would be nice: to be able to call public_key:der_encode('SubjectAltName', SANExtension)
. I use that to include a SubjectAltName extension in a CSR extensionRequest
.
Unfortunately PKIX1Implicit-2009
does not define the necessary enc_SubjectAltName/2
function, so this fails with {:error, {:asn1, {{:undefined_type, :SubjectAltName}, ...}
. There is enc_ext-SubjectAltName/2
, though.
There seem to be some inconsistencies in this respect for various certificate extensions. For example, AuthorityKeyIdentifier
and SubjectKeyIdentifier
do expose enc_Xxx
and dec_Xxx
functions.
closes #9857