Skip to content

Commit 9863e11

Browse files
danbevrvagg
authored andcommittedAug 13, 2018
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 <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 8442d2a commit 9863e11

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:
@@ -372,7 +372,8 @@ rsa_public_4096.pem: rsa_private_4096.pem
372372
openssl rsa -in rsa_private_4096.pem -out rsa_public_4096.pem
373373

374374
clean:
375-
rm -f *.pem *.srl ca2-database.txt ca2-serial
375+
rm -f *.pem *.srl ca2-database.txt ca2-serial fake-startcom-root-serial
376+
@> fake-startcom-root-database.txt
376377

377378
test: agent1-verify agent2-verify agent3-verify agent4-verify agent5-verify
378379

0 commit comments

Comments
 (0)
Please sign in to comment.