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

support SubjectAlternativeName::other_name again #1911

Closed
huettner94 opened this issue Apr 27, 2023 · 2 comments · Fixed by #1915
Closed

support SubjectAlternativeName::other_name again #1911

huettner94 opened this issue Apr 27, 2023 · 2 comments · Fixed by #1915

Comments

@huettner94
Copy link
Contributor

As written here i'm opening this issue as i' m using SubjectAlternativeName::other_name.

I'm using it to generate a certificate for a testroutine for RFC 9174 which defines the SAN of the certificate should be in other_name 1.3.6.1.5.5.7.8.11 (Appendix C).
The code for this test can be found here.

For now i'm using the following alternative, but it looks like it is deprecated:

let subject_alternative_name = X509Extension::new_nid(
        None,
        Some(&builder.x509v3_context(None, None)),
        Nid::SUBJECT_ALT_NAME,
        &format!("otherName:1.3.6.1.5.5.7.8.11;IA5STRING:{}", sanname),
    )
    .unwrap();

Thank you for your help

@alex
Copy link
Collaborator

alex commented Apr 28, 2023 via email

@huettner94
Copy link
Contributor Author

Thanks for the hint. I will try

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 a pull request may close this issue.

2 participants