-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathssl.mk
More file actions
48 lines (41 loc) · 1.26 KB
/
ssl.mk
File metadata and controls
48 lines (41 loc) · 1.26 KB
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
testdata/certs:
@mkdir -p testdata/certs
data/certs:
@mkdir -p data/certs
data/certs/root-ca.crt data/certs/root-ca.key: data/certs
@step certificate create identity.needle.local \
data/certs/root-ca.crt \
data/certs/root-ca.key \
--profile root-ca \
--not-after=87600h \
--no-password \
--insecure \
--kty RSA
ca: data/certs/root-ca.crt data/certs/root-ca.key
.PHONY: ca
testdata/certs/root-ca.crt testdata/certs/root-ca.key: testdata/certs
@step certificate create identity-test.needle.local \
testdata/certs/root-ca.crt \
testdata/certs/root-ca.key \
--profile root-ca \
--not-after=87600h \
--no-password \
--insecure \
--kty RSA
ca-test: testdata/certs/root-ca.crt testdata/certs/root-ca.key
.PHONY: ca-test
testdata/certs/test.needle.local.crt testdata/certs/test.needle.local.key: testdata/certs
@step certificate create test.needle.local \
testdata/certs/test.needle.local.crt \
testdata/certs/test.needle.local.key \
--ca testdata/certs/root-ca.crt \
--ca-key testdata/certs/root-ca.key \
--profile leaf \
--not-after 8760h \
--no-password \
--insecure \
--san 127.0.0.1 \
--san localhost \
--san test.needle.local
cert-test: testdata/certs/test.needle.local.crt testdata/certs/test.needle.local.key
.PHONY: cert-test