@@ -469,6 +469,17 @@ server5-selfsigned.crt: server5.key
469469 -out $@
470470all_final += server5-selfsigned.crt
471471
472+ # Create a certificate which is almost identical to "server3.crt", i.e.
473+ # it contains a public EC key and it is signed with RSA. The main difference
474+ # compared to "server3.crt" is that in this case we use a secp256r1 key ("server5.key")
475+ # instead of secp192r1 one that is used in "server3.crt".
476+ parse_input/server5-rsa-signed.crt server5-rsa-signed.crt : server5.key
477+ $(MBEDTLS_CERT_WRITE ) subject_key=$< subject_name=" C=NL,O=PolarSSL,CN=localhost" serial=13 \
478+ issuer_crt=$(test_ca_crt ) issuer_key=$(test_ca_key_file_rsa ) issuer_pwd=$(test_ca_pwd_rsa ) \
479+ not_before=20251201101530 not_after=20351201101530 \
480+ md=SHA256 version=3 output_file=$@
481+ all_final += server5-rsa-signed.crt
482+
472483parse_input/server5-othername.crt.der : server5.key
473484 $(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 $@
474485
@@ -625,6 +636,18 @@ server10_int3_spurious_int-ca2.crt: server10.crt test-int-ca3.crt $(test_ca_int_
625636 cat $^ > $@
626637all_final += server10_int3_spurious_int-ca2.crt
627638
639+ # server11 *
640+
641+ # This is basically identical to "server5-rsa-signed.crt" but using a secp256k1
642+ # key instead of secp256r1 one in order not to fall in the list of allowed curves
643+ # for suite-b profile.
644+ server11-rsa-signed.crt : server11.key
645+ $(MBEDTLS_CERT_WRITE ) subject_key=$< subject_name=" C=NL,O=PolarSSL,CN=localhost" serial=13 \
646+ issuer_crt=$(test_ca_crt ) issuer_key=$(test_ca_key_file_rsa ) issuer_pwd=$(test_ca_pwd_rsa ) \
647+ not_before=20251201101530 not_after=20351201101530 \
648+ md=SHA1 version=3 output_file=$@
649+ all_final += server11-rsa-signed.crt
650+
628651rsa_pkcs1_2048_public.pem : server8.key
629652 $(OPENSSL ) rsa -in $< -outform PEM -RSAPublicKey_out -out $@
630653all_final += rsa_pkcs1_2048_public.pem
0 commit comments