Skip to content

Commit fda24da

Browse files
danbevMylesBorins
authored andcommitted
test: update keys/Makefile to clean and build all
Currently when running make clean, followed by make not all certificates get genenerated. In addition there are also the following error messages related to the startdate in agent8-cert.pem, and agent9-cert.pem: start date is invalid, it should be YYMMDDHHMMSSZ After this commit it is possible to perform the following commands: $ make clean $ make $ make test PR-URL: #19975 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 09151e0 commit fda24da

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

test/fixtures/keys/Makefile

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
all: agent1-cert.pem agent2-cert.pem agent3-cert.pem agent4-cert.pem agent5-cert.pem ca2-crl.pem ec-cert.pem dh512.pem dh1024.pem dh2048.pem dsa1025.pem dsa_private_1025.pem dsa_public_1025.pem rsa_private_1024.pem rsa_private_2048.pem rsa_private_4096.pem rsa_public_1024.pem rsa_public_2048.pem rsa_public_4096.pem
1+
all: agent1-cert.pem agent1-pfx.pem agent2-cert.pem agent3-cert.pem agent4-cert.pem agent5-cert.pem agent6-cert.pem agent7-cert.pem agent8-cert.pem agent9-cert.pem ca1-cert.pem ca2-crl.pem ca3-cert.pem ec-cert.pem dh512.pem dh1024.pem dh2048.pem dsa1025.pem dsa_private_1025.pem dsa_public_1025.pem rsa_private_1024.pem rsa_private_2048.pem rsa_private_4096.pem rsa_public_1024.pem rsa_public_2048.pem rsa_public_4096.pem
22

33

44
#
@@ -280,7 +280,7 @@ agent8-csr.pem: agent8.cnf agent8-key.pem
280280
openssl req -new -config agent8.cnf -key agent8-key.pem \
281281
-out agent8-csr.pem
282282

283-
agent8-cert.pem: agent8-csr.pem
283+
agent8-cert.pem: agent8-csr.pem fake-startcom-root-cert.pem fake-startcom-root-key.pem
284284
openssl ca \
285285
-config fake-startcom-root.cnf \
286286
-keyfile fake-startcom-root-key.pem \
@@ -289,7 +289,7 @@ agent8-cert.pem: agent8-csr.pem
289289
-days 9999 \
290290
-passin "pass:password" \
291291
-in agent8-csr.pem \
292-
-startdate 20161020235959Z \
292+
-startdate 161020235959Z \
293293
-notext -out agent8-cert.pem
294294

295295

@@ -319,7 +319,7 @@ agent9-cert.pem: agent9-csr.pem
319319
-days 9999 \
320320
-passin "pass:password" \
321321
-in agent9-csr.pem \
322-
-startdate 20161021000001Z \
322+
-startdate 161021000001Z \
323323
-notext -out agent9-cert.pem
324324

325325
ec-key.pem:
@@ -380,7 +380,8 @@ rsa_public_4096.pem: rsa_private_4096.pem
380380
openssl rsa -in rsa_private_4096.pem -out rsa_public_4096.pem
381381

382382
clean:
383-
rm -f *.pem *.srl ca2-database.txt ca2-serial
383+
rm -f *.pem *.srl ca2-database.txt ca2-serial fake-startcom-root-serial
384+
@> fake-startcom-root-database.txt
384385

385386
test: agent1-verify agent2-verify agent3-verify agent4-verify agent5-verify
386387

0 commit comments

Comments
 (0)