|
@@ -0,0 +1,16 @@
|
|
1
|
+# Installation
|
|
2
|
+
|
|
3
|
+## .env
|
|
4
|
+
|
|
5
|
+- Setup `ALL_TZ` to the current timezone
|
|
6
|
+- Set `ALL_RESTART_POLICY` to `unless-stopped`
|
|
7
|
+
|
|
8
|
+## Generate CA
|
|
9
|
+
|
|
10
|
+```shell
|
|
11
|
+mkdir -p data/step-ca/home/secrets
|
|
12
|
+echo 'change_it' > data/step-ca/home/secrets/password
|
|
13
|
+chmod 600 data/step-ca/home/secrets/password
|
|
14
|
+chown -R 1000:1000 data/step-ca/home
|
|
15
|
+docker run -it --rm -v `pwd`/data/step-ca/home:/home/step smallstep/step-ca:0.15.6 step ca init --ssh --address '0.0.0.0:443' --provisioner 'admin-provisioner' --password-file 'secrets/password' --dns '127.0.0.1,localhost,pki.example.com' --name 'Example Inc.'
|
|
16
|
+```
|