aboutsummaryrefslogtreecommitdiff
path: root/genpki.sh
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-02-09 15:38:36 +0100
committerAlex Auvolat <alex@adnab.me>2022-02-09 15:38:36 +0100
commitb0010b309b89eb64a4ca9e2dd7ceb37b42fd365a (patch)
treeeed1e9e77ec8629aa9d43aadff22ab250759e2ab /genpki.sh
parentf03cafd49b48eabc4743b3a3791fd22f19cb0de1 (diff)
downloadnixcfg-b0010b309b89eb64a4ca9e2dd7ceb37b42fd365a.tar.gz
nixcfg-b0010b309b89eb64a4ca9e2dd7ceb37b42fd365a.zip
Config for prod cluster
Diffstat (limited to 'genpki.sh')
-rwxr-xr-xgenpki.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/genpki.sh b/genpki.sh
index 0dd541e..d41d3b8 100755
--- a/genpki.sh
+++ b/genpki.sh
@@ -63,8 +63,8 @@ extendedKeyUsage = serverAuth, clientAuth
subjectAltName = @alt_names
[alt_names]
-DNS.1 = server.staging.$APP
-DNS.2 = client.staging.$APP
+DNS.1 = server.$CLUSTER.$APP
+DNS.2 = client.$CLUSTER.$APP
DNS.3 = localhost
DNS.4 = 127.0.0.1
EOF
@@ -104,7 +104,7 @@ extendedKeyUsage = clientAuth
subjectAltName = @alt_names
[alt_names]
-DNS.1 = client.staging.$APP
+DNS.1 = client.$CLUSTER.$APP
EOF
) \
-CA $APP-ca.crt -CAkey $APP-ca.key -CAcreateserial \