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
2
-
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 ec-pfx.pem
3
2
4
3
#
5
4
# Create Certificate Authority: ca1
6
5
# ('password' is used for the CA password.)
7
6
#
8
7
ca1-cert.pem : ca1.cnf
9
- openssl req -new -x509 -days 9999 -config ca1.cnf -keyout ca1-key.pem -out ca1-cert.pem
8
+ openssl req -new -x509 -days 99999 -config ca1.cnf -keyout ca1-key.pem -out ca1-cert.pem
10
9
11
10
#
12
11
# Create Certificate Authority: ca2
13
12
# ('password' is used for the CA password.)
14
13
#
15
14
ca2-cert.pem : ca2.cnf
16
- openssl req -new -x509 -days 9999 -config ca2.cnf -keyout ca2-key.pem -out ca2-cert.pem
15
+ openssl req -new -x509 -days 99999 -config ca2.cnf -keyout ca2-key.pem -out ca2-cert.pem
17
16
echo ' 01' > ca2-serial
18
17
touch ca2-database.txt
19
18
@@ -35,7 +34,7 @@ ca3-cert.pem: ca3-csr.pem ca3-key.pem ca3.cnf ca1-cert.pem ca1-key.pem
35
34
openssl x509 -req \
36
35
-extfile ca3.cnf \
37
36
-extensions v3_ca \
38
- -days 9999 \
37
+ -days 99999 \
39
38
-passin " pass:password" \
40
39
-in ca3-csr.pem \
41
40
-CA ca1-cert.pem \
@@ -53,7 +52,7 @@ fake-cnnic-root-key.pem:
53
52
fake-cnnic-root-cert.pem : fake-cnnic-root.cnf fake-cnnic-root-key.pem
54
53
openssl req -x509 -new \
55
54
-key fake-cnnic-root-key.pem \
56
- -days 1024 \
55
+ -days 99999 \
57
56
-out fake-cnnic-root-cert.pem \
58
57
-config fake-cnnic-root.cnf
59
58
@@ -65,7 +64,7 @@ fake-startcom-root-key.pem:
65
64
66
65
fake-startcom-root-cert.pem : fake-startcom-root.cnf \
67
66
fake-startcom-root-key.pem
68
- openssl req -new -x509 -days 9999 -config \
67
+ openssl req -new -x509 -days 99999 -config \
69
68
fake-startcom-root.cnf -key fake-startcom-root-key.pem -out \
70
69
fake-startcom-root-cert.pem
71
70
echo ' 01' > fake-startcom-root-serial
@@ -85,7 +84,7 @@ agent1-cert.pem: agent1-csr.pem ca1-cert.pem ca1-key.pem
85
84
openssl x509 -req \
86
85
-extfile agent1.cnf \
87
86
-extensions v3_ca \
88
- -days 9999 \
87
+ -days 99999 \
89
88
-passin " pass:password" \
90
89
-in agent1-csr.pem \
91
90
-CA ca1-cert.pem \
@@ -120,7 +119,7 @@ agent2-csr.pem: agent2-key.pem agent2.cnf
120
119
# Create a Certificate for the agent.
121
120
agent2-cert.pem : agent2-csr.pem agent2-key.pem
122
121
openssl x509 -req \
123
- -days 9999 \
122
+ -days 99999 \
124
123
-in agent2-csr.pem \
125
124
-signkey agent2-key.pem \
126
125
-out agent2-cert.pem
@@ -140,7 +139,7 @@ agent3-csr.pem: agent3.cnf agent3-key.pem
140
139
141
140
agent3-cert.pem : agent3-csr.pem ca2-cert.pem ca2-key.pem
142
141
openssl x509 -req \
143
- -days 9999 \
142
+ -days 99999 \
144
143
-passin " pass:password" \
145
144
-in agent3-csr.pem \
146
145
-CA ca2-cert.pem \
@@ -164,7 +163,7 @@ agent4-csr.pem: agent4.cnf agent4-key.pem
164
163
165
164
agent4-cert.pem : agent4-csr.pem ca2-cert.pem ca2-key.pem
166
165
openssl x509 -req \
167
- -days 9999 \
166
+ -days 99999 \
168
167
-passin " pass:password" \
169
168
-in agent4-csr.pem \
170
169
-CA ca2-cert.pem \
@@ -206,7 +205,7 @@ agent5-csr.pem: agent5.cnf agent5-key.pem
206
205
207
206
agent5-cert.pem : agent5-csr.pem ca2-cert.pem ca2-key.pem
208
207
openssl x509 -req \
209
- -days 9999 \
208
+ -days 99999 \
210
209
-passin " pass:password" \
211
210
-in agent5-csr.pem \
212
211
-CA ca2-cert.pem \
@@ -231,7 +230,7 @@ agent6-csr.pem: agent6.cnf agent6-key.pem
231
230
232
231
agent6-cert.pem : agent6-csr.pem ca3-cert.pem ca3-key.pem
233
232
openssl x509 -req \
234
- -days 9999 \
233
+ -days 99999 \
235
234
-passin " pass:password" \
236
235
-in agent6-csr.pem \
237
236
-CA ca3-cert.pem \
@@ -257,7 +256,7 @@ agent7-csr.pem: agent1.cnf agent7-key.pem
257
256
agent7-cert.pem : agent7-csr.pem fake-cnnic-root-cert.pem fake-cnnic-root-key.pem
258
257
openssl x509 -req \
259
258
-extfile agent7.cnf \
260
- -days 9999 \
259
+ -days 99999 \
261
260
-passin " pass:password" \
262
261
-in agent7-csr.pem \
263
262
-CA fake-cnnic-root-cert.pem \
@@ -286,7 +285,7 @@ agent8-cert.pem: agent8-csr.pem fake-startcom-root-cert.pem fake-startcom-root-k
286
285
-keyfile fake-startcom-root-key.pem \
287
286
-cert fake-startcom-root-cert.pem \
288
287
-batch \
289
- -days 9999 \
288
+ -days 99999 \
290
289
-passin " pass:password" \
291
290
-in agent8-csr.pem \
292
291
-startdate 161020235959Z \
@@ -316,7 +315,7 @@ agent9-cert.pem: agent9-csr.pem
316
315
-keyfile fake-startcom-root-key.pem \
317
316
-cert fake-startcom-root-cert.pem \
318
317
-batch \
319
- -days 9999 \
318
+ -days 99999 \
320
319
-passin " pass:password" \
321
320
-in agent9-csr.pem \
322
321
-startdate 161021000001Z \
@@ -330,7 +329,7 @@ ec-csr.pem: ec-key.pem
330
329
331
330
ec-cert.pem : ec-csr.pem ec-key.pem
332
331
openssl x509 -req \
333
- -days 9999 \
332
+ -days 99999 \
334
333
-in ec-csr.pem \
335
334
-signkey ec-key.pem \
336
335
-out ec-cert.pem
@@ -371,13 +370,13 @@ rsa_private_4096.pem:
371
370
openssl genrsa -out rsa_private_4096.pem 4096
372
371
373
372
rsa_public_1024.pem : rsa_private_1024.pem
374
- openssl rsa -in rsa_private_1024.pem -out rsa_public_1024.pem
373
+ openssl rsa -in rsa_private_1024.pem -pubout - out rsa_public_1024.pem
375
374
376
375
rsa_public_2048.pem : rsa_private_2048.pem
377
- openssl rsa -in rsa_private_2048.pem -out rsa_public_2048.pem
376
+ openssl rsa -in rsa_private_2048.pem -pubout - out rsa_public_2048.pem
378
377
379
378
rsa_public_4096.pem : rsa_private_4096.pem
380
- openssl rsa -in rsa_private_4096.pem -out rsa_public_4096.pem
379
+ openssl rsa -in rsa_private_4096.pem -pubout - out rsa_public_4096.pem
381
380
382
381
clean :
383
382
rm -f * .pem * .srl ca2-database.txt ca2-serial fake-startcom-root-serial
0 commit comments