-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (35 loc) · 898 Bytes
/
Makefile
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
.PHONY: gencert
gencert:
# cfssl gencert \
# -initca test/ca-csr.json | cfssljson -bare ca
#
# cfssl gencert \
# -ca=ca.pem \
# -ca-key=ca-key.pem \
# -config=test/ca-config.json \
# -profile=server \
# test/server-csr.json | cfssljson -bare server
#
# cfssl gencert \
# -ca=ca.pem \
# -ca-key=ca-key.pem \
# -config=test/ca-config.json \
# -profile=client \
# test/client-csr.json | cfssljson -bare client
cfssl gencert \
-ca=test/ca.pem \
-ca-key=test/ca-key.pem \
-config=test/ca-config.json \
-profile=client \
-cn="root" \
test/client-csr.json | cfssljson -bare root-client
cfssl gencert \
-ca=test/ca.pem \
-ca-key=test/ca-key.pem \
-config=test/ca-config.json \
-profile=client \
-cn="nobody" \
test/client-csr.json | cfssljson -bare nobody-client
TAG ?= 0.0.1
build-docker:
docker build -t github.com/nodamu/loggy:$(TAG) .