Skip to content

support SubjectAlternativeName::other_name again #1911

@huettner94

Description

@huettner94

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions