-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathMakefile
59 lines (45 loc) · 1.76 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
fqdn ?= abcd.sunzhongmou.com
unlock:
./unlock.sh
update-submodule:
git submodule update --init --recursive
tests: update-submodule
export LETS_ENCRYPT_WWW_LIB_PATH=$(CURDIR)/lib && \
./test/libs/bats/bin/bats ./test/*.sh
build:
docker-compose build letsencrypt-www
push: unlock
./docker-push.sh
issue:
docker-compose -f docker-compose.yml -f docker-compose.override.yml run --rm \
-e FQDN=$(fqdn) letsencrypt-www
shell:
docker-compose -f docker-compose.yml -f docker-compose.override.yml run --rm \
-e FQDN=$(fqdn) letsencrypt-www \
/bin/bash
setup-dev:
mkdir tmp && cd tmp \
&& git clone https://github.com/clibs/entr.git \
&& cd entr \
&& ./configure && make test && make install \
&& rm -rf tmp \
watch:
ls -d **/* | entr make tests
install-tests-lib:
[[ ! -d "./test/libs" ]] \
&& echo "Create test lib directory..." \
&& mkdir -p "./test/libs" \
&& cd -P "./test/libs" && pwd \
&& git submodule add -f https://github.com/sstephenson/bats bats \
&& git submodule add -f https://github.com/ztombol/bats-support bats-support \
&& git submodule add -f https://github.com/ztombol/bats-assert bats-assert
le-stg-root-crt:
curl https://letsencrypt.org/certs/fakeleintermediatex1.pem -o ./cert/root/stg-intermediate.pem && \
curl https://letsencrypt.org/certs/fakelerootx1.pem -o ./cert/root/stg-root.pem
verify-stg:
openssl verify -CAfile ./cert/root/stg-root.pem -untrusted ./cert/root/stg-intermediate.pem ./cert/$(fqdn)-fullchain.csr
le-root-crt:
curl https://letsencrypt.org/certs/letsencryptauthorityx3.pem.txt -o ./cert/root/intermediate.pem && \
curl https://letsencrypt.org/certs/isrgrootx1.pem.txt -o ./cert/root/root.pem
verify:
openssl verify -CAfile ./cert/root/root.pem -untrusted ./cert/root/intermediate.pem ./cert/$(fqdn)-fullchain.csr