aboutsummaryrefslogtreecommitdiff
path: root/scripts/resource-cert-samples/Makefile
blob: 90c85ac05f16f792782993f7ece4b8e53e9c6a43 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
# Automatically generated, do not edit.

all:: RIR.cer

RIR.key:
	../../openssl/openssl/apps/openssl genrsa -out $@ 2048

RIR.req: RIR.key RIR.cnf Makefile
	../../openssl/openssl/apps/openssl req -new -config RIR.cnf -key RIR.key -out $@

RIR.cer: RIR.req RIR.cnf RIR.key Makefile
	@test -d RIR || mkdir RIR
	@test -f RIR/index || touch RIR/index
	@test -f RIR/serial || echo 01 >RIR/serial
	../../openssl/openssl/apps/openssl ca -batch -out $@ -in RIR.req -extfile RIR.cnf -config RIR.cnf -selfsign


show_req::
	../../openssl/openssl/apps/openssl req -noout -text -in RIR.req -config /dev/null

show_cer::
	../../openssl/openssl/apps/openssl x509 -noout -text -in RIR.cer

all:: LIR3.cer

LIR3.key:
	../../openssl/openssl/apps/openssl genrsa -out $@ 2048

LIR3.req: LIR3.key LIR3.cnf Makefile
	../../openssl/openssl/apps/openssl req -new -config LIR3.cnf -key LIR3.key -out $@

LIR3.cer: LIR3.req LIR3.cnf RIR.key Makefile
	@test -d LIR3 || mkdir LIR3
	@test -f LIR3/index || touch LIR3/index
	@test -f LIR3/serial || echo 01 >LIR3/serial
	../../openssl/openssl/apps/openssl ca -batch -out $@ -in LIR3.req -extfile LIR3.cnf -config RIR.cnf


show_req::
	../../openssl/openssl/apps/openssl req -noout -text -in LIR3.req -config /dev/null

show_cer::
	../../openssl/openssl/apps/openssl x509 -noout -text -in LIR3.cer

all:: LIR2.cer

LIR2.key:
	../../openssl/openssl/apps/openssl genrsa -out $@ 2048

LIR2.req: LIR2.key LIR2.cnf Makefile
	../../openssl/openssl/apps/openssl req -new -config LIR2.cnf -key LIR2.key -out $@

LIR2.cer: LIR2.req LIR2.cnf RIR.key Makefile
	@test -d LIR2 || mkdir LIR2
	@test -f LIR2/index || touch LIR2/index
	@test -f LIR2/serial || echo 01 >LIR2/serial
	../../openssl/openssl/apps/openssl ca -batch -out $@ -in LIR2.req -extfile LIR2.cnf -config RIR.cnf


show_req::
	../../openssl/openssl/apps/openssl req -noout -text -in LIR2.req -config /dev/null

show_cer::
	../../openssl/openssl/apps/openssl x509 -noout -text -in LIR2.cer

all:: LIR1.cer

LIR1.key:
	../../openssl/openssl/apps/openssl genrsa -out $@ 2048

LIR1.req: LIR1.key LIR1.cnf Makefile
	../../openssl/openssl/apps/openssl req -new -config LIR1.cnf -key LIR1.key -out $@

LIR1.cer: LIR1.req LIR1.cnf RIR.key Makefile
	@test -d LIR1 || mkdir LIR1
	@test -f LIR1/index || touch LIR1/index
	@test -f LIR1/serial || echo 01 >LIR1/serial
	../../openssl/openssl/apps/openssl ca -batch -out $@ -in LIR1.req -extfile LIR1.cnf -config RIR.cnf


show_req::
	../../openssl/openssl/apps/openssl req -noout -text -in LIR1.req -config /dev/null

show_cer::
	../../openssl/openssl/apps/openssl x509 -noout -text -in LIR1.cer

all:: ISP5c.cer

ISP5c.key:
	../../openssl/openssl/apps/openssl genrsa -out $@ 2048

ISP5c.req: ISP5c.key ISP5c.cnf Makefile
	../../openssl/openssl/apps/openssl req -new -config ISP5c.cnf -key ISP5c.key -out $@

ISP5c.cer: ISP5c.req ISP5c.cnf LIR3.key Makefile
	@test -d ISP5c || mkdir ISP5c
	@test -f ISP5c/index || touch ISP5c/index
	@test -f ISP5c/serial || echo 01 >ISP5c/serial
	../../openssl/openssl/apps/openssl ca -batch -out $@ -in ISP5c.req -extfile ISP5c.cnf -config LIR3.cnf


show_req::
	../../openssl/openssl/apps/openssl req -noout -text -in ISP5c.req -config /dev/null

show_cer::
	../../openssl/openssl/apps/openssl x509 -noout -text -in ISP5c.cer

all:: ISP5b.cer

ISP5b.key:
	../../openssl/openssl/apps/openssl genrsa -out $@ 2048

ISP5b.req: ISP5b.key ISP5b.cnf Makefile
	../../openssl/openssl/apps/openssl req -new -config ISP5b.cnf -key ISP5b.key -out $@

ISP5b.cer: ISP5b.req ISP5b.cnf LIR3.key Makefile
	@test -d ISP5b || mkdir ISP5b
	@test -f ISP5b/index || touch ISP5b/index
	@test -f ISP5b/serial || echo 01 >ISP5b/serial
	../../openssl/openssl/apps/openssl ca -batch -out $@ -in ISP5b.req -extfile ISP5b.cnf -config LIR3.cnf


show_req::
	../../openssl/openssl/apps/openssl req -noout -text -in ISP5b.req -config /dev/null

show_cer::
	../../openssl/openssl/apps/openssl x509 -noout -text -in ISP5b.cer

all:: ISP5a.cer

ISP5a.key:
	../../openssl/openssl/apps/openssl genrsa -out $@ 2048

ISP5a.req: ISP5a.key ISP5a.cnf Makefile
	../../openssl/openssl/apps/openssl req -new -config ISP5a.cnf -key ISP5a.key -out $@

ISP5a.cer: ISP5a.req ISP5a.cnf LIR3.key Makefile
	@test -d ISP5a || mkdir ISP5a
	@test -f ISP5a/index || touch ISP5a/index
	@test -f ISP5a/serial || echo 01 >ISP5a/serial
	../../openssl/openssl/apps/openssl ca -batch -out $@ -in ISP5a.req -extfile ISP5a.cnf -config LIR3.cnf


show_req::
	../../openssl/openssl/apps/openssl req -noout -text -in ISP5a.req -config /dev/null

show_cer::
	../../openssl/openssl/apps/openssl x509 -noout -text -in ISP5a.cer

all:: ISP4.cer

ISP4.key:
	../../openssl/openssl/apps/openssl genrsa -out $@ 2048

ISP4.req: ISP4.key ISP4.cnf Makefile
	../../openssl/openssl/apps/openssl req -new -config ISP4.cnf -key ISP4.key -out $@

ISP4.cer: ISP4.req ISP4.cnf LIR2.key Makefile
	@test -d ISP4 || mkdir ISP4
	@test -f ISP4/index || touch ISP4/index
	@test -f ISP4/serial || echo 01 >ISP4/serial
	../../openssl/openssl/apps/openssl ca -batch -out $@ -in ISP4.req -extfile ISP4.cnf -config LIR2.cnf


show_req::
	../../openssl/openssl/apps/openssl req -noout -text -in ISP4.req -config /dev/null

show_cer::
	../../openssl/openssl/apps/openssl x509 -noout -text -in ISP4.cer

all:: ISP3.cer

ISP3.key:
	../../openssl/openssl/apps/openssl genrsa -out $@ 2048

ISP3.req: ISP3.key ISP3.cnf Makefile
	../../openssl/openssl/apps/openssl req -new -config ISP3.cnf -key ISP3.key -out $@

ISP3.cer: ISP3.req ISP3.cnf LIR2.key Makefile
	@test -d ISP3 || mkdir ISP3
	@test -f ISP3/index || touch ISP3/index
	@test -f ISP3/serial || echo 01 >ISP3/serial
	../../openssl/openssl/apps/openssl ca -batch -out $@ -in ISP3.req -extfile ISP3.cnf -config LIR2.cnf


show_req::
	../../openssl/openssl/apps/openssl req -noout -text -in ISP3.req -config /dev/null

show_cer::
	../../openssl/openssl/apps/openssl x509 -noout -text -in ISP3.cer

all:: ISP2.cer

ISP2.key:
	../../openssl/openssl/apps/openssl genrsa -out $@ 2048

ISP2.req: ISP2.key ISP2.cnf Makefile
	../../openssl/openssl/apps/openssl req -new -config ISP2.cnf -key ISP2.key -out $@

ISP2.cer: ISP2.req ISP2.cnf LIR1.key Makefile
	@test -d ISP2 || mkdir ISP2
	@test -f ISP2/index || touch ISP2/index
	@test -f ISP2/serial || echo 01 >ISP2/serial
	../../openssl/openssl/apps/openssl ca -batch -out $@ -in ISP2.req -extfile ISP2.cnf -config LIR1.cnf


show_req::
	../../openssl/openssl/apps/openssl req -noout -text -in ISP2.req -config /dev/null

show_cer::
	../../openssl/openssl/apps/openssl x509 -noout -text -in ISP2.cer

all:: ISP1.cer

ISP1.key:
	../../openssl/openssl/apps/openssl genrsa -out $@ 2048

ISP1.req: ISP1.key ISP1.cnf Makefile
	../../openssl/openssl/apps/openssl req -new -config ISP1.cnf -key ISP1.key -out $@

ISP1.cer: ISP1.req ISP1.cnf LIR1.key Makefile
	@test -d ISP1 || mkdir ISP1
	@test -f ISP1/index || touch ISP1/index
	@test -f ISP1/serial || echo 01 >ISP1/serial
	../../openssl/openssl/apps/openssl ca -batch -out $@ -in ISP1.req -extfile ISP1.cnf -config LIR1.cnf


show_req::
	../../openssl/openssl/apps/openssl req -noout -text -in ISP1.req -config /dev/null

show_cer::
	../../openssl/openssl/apps/openssl x509 -noout -text -in ISP1.cer