-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Ia5String support #180
Comments
What's your use case? Why do you need this? |
Trying to create CertificateParams using from_ca_cert_der. The existing certificate contains subject in Ia5String format. Thank You. |
Why is it important to you that the generated certificate has the same type as the existing certificate? |
The type doesn't matter , but https://docs.rs/rcgen/latest/rcgen/struct.CertificateParams.html#method.from_ca_cert_der fails to parse the certificate if subject is of type Ia5String. |
Can you share the certificate? I would expect most certificate subjects to contain organization names, or common names, and those are defined in RFC 5280 as choices of string types that don't include Ia5String. Does the subject contain something unusual like a |
Here is the certificate
|
Thanks! It's the
5280 mentions:
I believe IA5String is equivalent to ASCII so I think it would be feasible to implement support without too much work. |
@darkseid-is with the code in #182 I'm able to use |
This branch adds basic support emitting and parsing distinguished name values that are Ia5Strings. For example, email address attributes in a certificate subject distinguished name. Note that because of #181 this code will panic when emitting invalid Ia5String values. This problem is general to rcgen's handling of ASN.1 string types and so isn't addressed with additional care in this branch. A broader rework is required. Along the way I also fixed a warning from #176 related to where we were defining the custom `profile.dev.package.num-bigint-dig` profile metadata. Resolves #180
This is fixed in the |
Thanks for the fix guys. |
Add support for Ia5String in Distinguished Name. Thank you.
The text was updated successfully, but these errors were encountered: