Skip to content

Commit

Permalink
Adding test cases with BundleEID Other Name
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianSipos committed Jan 10, 2025
1 parent 9cc3006 commit 17c3014
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions data_files/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,9 @@ all_final += server5-selfsigned.crt
parse_input/server5-othername.crt.der: server5.key
$(OPENSSL) req -x509 -new -subj "/C=UK/O=Mbed TLS/CN=Mbed TLS othername SAN" -set_serial 77 -config $(test_ca_config_file) -extensions othername_san -days 3650 -sha256 -key $< -outform der -out $@

parse_input/server5-bp_eid.crt.der: server5.key
$(OPENSSL) req -x509 -new -subj "/C=UK/O=Mbed TLS/CN=Mbed TLS othername SAN" -set_serial 77 -config $(test_ca_config_file) -extensions bp_eid_san -days 3650 -sha256 -key $< -outform der -out $@

parse_input/server5-nonprintable_othername.crt.der: server5.key
$(OPENSSL) req -x509 -new -subj "/C=UK/O=Mbed TLS/CN=Mbed TLS non-printable othername SAN" -set_serial 77 -config $(test_ca_config_file) -extensions nonprintable_othername_san -days 3650 -sha256 -key $< -outform der -out $@

Expand Down
Binary file added data_files/parse_input/server5-bp_eid.crt.der
Binary file not shown.
3 changes: 3 additions & 0 deletions data_files/test-ca.opensslconf
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ basicConstraints = CA:true
[othername_san]
subjectAltName=otherName:1.3.6.1.5.5.7.8.4;SEQ:hw_module_name

[bp_eid_san]
subjectAltName=otherName:1.3.6.1.5.5.7.8.11;IA5:"ipn:977000.100.0"

[nonprintable_othername_san]
subjectAltName=otherName:1.3.6.1.5.5.7.8.4;SEQ:nonprintable_hw_module_name

Expand Down

0 comments on commit 17c3014

Please sign in to comment.