diff options
author | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2022-10-30 15:29:41 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2022-10-30 15:29:41 +0000 |
commit | 8a1e77aab4d761012367718ae788082d9cd4bca4 (patch) | |
tree | 8f6da5a24e2f2008724bf3de5444da840983b678 /dehydrated/share/hooks/deploy_cert.extra | |
parent | Improving comment in dehydrated deploy_cert.chrony hook. (diff) | |
download | service-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/hooks/deploy_cert.extra')
-rwxr-xr-x | dehydrated/share/hooks/deploy_cert.extra | 8 |
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." |