summaryrefslogtreecommitdiffstats
path: root/dehydrated/share
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2022-10-30 15:29:41 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2022-10-30 15:29:41 +0000
commit8a1e77aab4d761012367718ae788082d9cd4bca4 (patch)
tree8f6da5a24e2f2008724bf3de5444da840983b678 /dehydrated/share
parentImproving comment in dehydrated deploy_cert.chrony hook. (diff)
downloadservice-tools-8a1e77aab4d761012367718ae788082d9cd4bca4.tar.xz
service-tools-8a1e77aab4d761012367718ae788082d9cd4bca4.zip
Improving CA filename prefix in dehydrated deploy_cert.extra hook.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to 'dehydrated/share')
-rwxr-xr-xdehydrated/share/hooks/deploy_cert.extra8
1 files changed, 4 insertions, 4 deletions
diff --git a/dehydrated/share/hooks/deploy_cert.extra b/dehydrated/share/hooks/deploy_cert.extra
index 14585af..b33f562 100755
--- a/dehydrated/share/hooks/deploy_cert.extra
+++ b/dehydrated/share/hooks/deploy_cert.extra
@@ -30,11 +30,11 @@ echo -n " + root and intermediate CA:"
TMPFILE="$(mktemp -p "${DIRECTORY}" -u ca.XXXXXXXXXX)"
grep -Ev '^$' "${CHAINFILE}" | csplit -f "${TMPFILE}" -s -z - '/-----BEGIN CERTIFICATE-----/' '{*}'
-mv "${TMPFILE}00" "${DIRECTORY}/ca-intermediate-${TIMESTAMP}.pem"
-ln -sf "${DIRECTORY}/ca-intermediate-${TIMESTAMP}.pem" "${DIRECTORY}/ca-intermediate.pem"
+mv "${TMPFILE}00" "${DIRECTORY}/ca.intermediate-${TIMESTAMP}.pem"
+ln -sf "${DIRECTORY}/ca.intermediate-${TIMESTAMP}.pem" "${DIRECTORY}/ca.intermediate.pem"
-mv "${TMPFILE}01" "${DIRECTORY}/ca-root-${TIMESTAMP}.pem"
-ln -sf "${DIRECTORY}/ca-root-${TIMESTAMP}.pem" "${DIRECTORY}/ca-root.pem"
+mv "${TMPFILE}01" "${DIRECTORY}/ca.root-${TIMESTAMP}.pem"
+ln -sf "${DIRECTORY}/ca.root-${TIMESTAMP}.pem" "${DIRECTORY}/ca.root.pem"
echo " done."