-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (27 loc) · 682 Bytes
/
Copy pathMakefile
File metadata and controls
36 lines (27 loc) · 682 Bytes
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
all: ca client server
ca: certs/ca.pem
client: certs/client.pem
server: certs/server.pem
certs:
mkdir -p certs
certs/ca.pem: certs
cfssl gencert -initca \
configs/ca.json | cfssljson -bare certs/ca
certs/client.pem: certs
cfssl gencert \
-ca=certs/ca.pem \
-ca-key=certs/ca-key.pem \
-config=configs/ca-config.json \
-profile=client \
configs/client.json | cfssljson -bare certs/client
certs/server.pem: certs
cfssl gencert \
-ca=certs/ca.pem \
-ca-key=certs/ca-key.pem \
-config=configs/ca-config.json \
-profile=server \
configs/server.json | cfssljson -bare certs/server
.PHONY: clean
clean:
rm certs/*.csr
rm certs/*.pem