Skip to content

Commit

Permalink
Correct encoding of DNs in SubjectAlternativeName
Browse files Browse the repository at this point in the history
  • Loading branch information
randombit committed May 7, 2024
1 parent c4ffa88 commit c0eda69
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib/x509/alt_name.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,7 @@ void AlternativeName::encode_into(DER_Encoder& der) const {
}

for(const auto& name : m_dn_names) {
// THIS IS WRONG!!
der.encode(name);
der.add_object(ASN1_Type(4), ASN1_Class::ExplicitContextSpecific, name.DER_encode());
}

for(const auto& name : m_uri) {
Expand Down

0 comments on commit c0eda69

Please sign in to comment.