Add rules to generate server5[-badsign].crt
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
parent
543d912495
commit
b7b40b494d
2 changed files with 16 additions and 0 deletions
|
@ -1173,6 +1173,19 @@ all_final += server2.key.enc
|
|||
|
||||
# server5*
|
||||
|
||||
server5.csr: server5.key
|
||||
$(OPENSSL) req -new -subj "/C=NL/O=PolarSSL/CN=localhost" \
|
||||
-key $< -out $@
|
||||
all_intermediate += server5.csr
|
||||
server5.crt: server5.csr
|
||||
$(OPENSSL) x509 -req -CA $(test_ca_crt_cat21) -CAkey $(test_ca_key_file_ec) \
|
||||
-extfile server5.crt.openssl.v3_ext -set_serial 9 -days 3650 -sha256 -in $< -out $@
|
||||
all_final += server5.crt
|
||||
|
||||
server5-badsign.crt: server5.crt
|
||||
{ head -n-2 $<; tail -n-2 $< | sed -e '1s/0\(=*\)$$/_\1/' -e '1s/[^_=]\(=*\)$$/0\1/' -e '1s/_/1/'; } > $@
|
||||
all_final += server5-badsign.crt
|
||||
|
||||
# The use of 'Server 1' in the DN is intentional here, as the DN is hardcoded in the x509_write test suite.'
|
||||
server5.req.ku.sha1: server5.key
|
||||
$(MBEDTLS_CERT_REQ) output_file=$@ filename=$< key_usage=digital_signature,non_repudiation subject_name="C=NL,O=PolarSSL,CN=PolarSSL Server 1" md=SHA1
|
||||
|
|
3
tests/data_files/server5.crt.openssl.v3_ext
Normal file
3
tests/data_files/server5.crt.openssl.v3_ext
Normal file
|
@ -0,0 +1,3 @@
|
|||
basicConstraints = CA:false
|
||||
subjectKeyIdentifier=hash
|
||||
authorityKeyIdentifier=keyid:always,issuer:always
|
Loading…
Reference in a new issue