mirror of
https://github.com/ipxe/ipxe
synced 2026-01-22 20:19:08 +03:00
[x509] Use case-insensitive comparison for certificate names
DNS names are case-insensitive, and RFC 5280 (unlike RFC 3280) mandates support for case-insensitive name comparison in X.509 certificates. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -1037,6 +1037,7 @@ static void x509_test_exec ( void ) {
|
||||
/* Check certificate names */
|
||||
x509_check_name_ok ( &server_crt, "boot.test.ipxe.org" );
|
||||
x509_check_name_ok ( &server_crt, "demo.test.ipxe.org" );
|
||||
x509_check_name_ok ( &server_crt, "demo.test.iPXE.org" );
|
||||
x509_check_name_fail_ok ( &server_crt, "incorrect.test.ipxe.org" );
|
||||
x509_check_name_ok ( &server_crt, "anything.alt.test.ipxe.org" );
|
||||
x509_check_name_ok ( &server_crt, "wildcard.alt.test.ipxe.org" );
|
||||
|
||||
Reference in New Issue
Block a user