-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·89 lines (73 loc) · 2.08 KB
/
Makefile
File metadata and controls
executable file
·89 lines (73 loc) · 2.08 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
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
SHELL=/bin/bash
.PHONY: install
install:
go install go.osspkg.com/goppy/v2/cmd/goppy@latest
goppy setup-lib
.PHONY: lint
lint:
goppy lint
.PHONY: license
license:
goppy license
.PHONY: build
build:
goppy build --arch=amd64
.PHONY: tests
tests:
goppy test
.PHONY: pre-commit
pre-commit: install license lint tests build
.PHONY: ci
ci: pre-commit
run_client_ca:
go run -race cmd/casper-cli/main.go ca \
--cn='Dev Root CA L0' \
--org='Dev Team' \
--country='RU' \
--deadline=7300 \
--alg=ecdsa512 \
--cps='http://pki.demo.local/docs/cps.pdf' \
--no-auto-permission \
--filename='dev_root_ca_l0' \
--output=./build
go run -race cmd/casper-cli/main.go ca \
--cn='Dev Web CA L1' \
--org='Dev Team' \
--deadline=3650 \
--ca-cert=./build/dev_root_ca_l0.crt \
--ca-key=./build/dev_root_ca_l0.key \
--alg=ecdsa512 \
--ocsp='http://pki.demo.local/root/root-l0' \
--cps='http://pki.demo.local/docs/cps.pdf' \
--crl='http://pki.demo.local/crl/root-l0.crl' \
--icu='http://pki.demo.local/icu/root-l0.crt' \
--no-auto-permission \
--filename='dev_web_ca_l1' \
--output=./build
run_client_renewal:
go run -race cmd/casper-cli/main.go renewal \
--address='http://127.0.0.1:20001' \
--auth-id='c958e408-d558-4964-aac1-960f815c0c2e' \
--auth-key='Ae8fL1pAB+83qaob3cQkX/bGHxDycUjW' \
--domains='a.demo.com' \
--alg=ecdsa256 \
--ocsp='http://pki.demo.local/root/root-l1' \
--cps='http://pki.demo.local/docs/cps.pdf' \
--crl='http://pki.demo.local/crl/root-l1.crl' \
--icu='http://pki.demo.local/icu/root-l1.crt' \
--no-auto-permission \
--filename='a_demo_com' \
--force \
--output=./build
run_client_ocsp:
openssl x509 -noout -ocsp_uri -in ./build/a_demo_com.crt
openssl ocsp \
-issuer ./build/a_demo_com.chain.crt \
-cert ./build/a_demo_com.crt \
-text -url http://127.0.0.1:20002/root/root-l1
run_server:
go run -race cmd/casper-server/main.go --config=config/config.dev.yaml
deb:
deb-builder build --base-dir=./build --tmp-dir=/tmp/deb-build-casper --no-revision
install_cli_local: build
cp build/casper-cli_amd64 ~/.local/bin/casper-cli