diff options
author | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2021-08-28 04:28:53 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2021-08-28 09:20:07 +0000 |
commit | d897eaf5cdb0c34888771bd8aa94fd494e67af3d (patch) | |
tree | bac5112ba9ab0d7dc703cc6be67d6450e17eba9d /dehydrated/share/hooks/deploy_cert.fullchain-privkey | |
parent | Using rst instead of asciidoc for manpage generation. (diff) | |
download | service-tools-d897eaf5cdb0c34888771bd8aa94fd494e67af3d.tar.xz service-tools-d897eaf5cdb0c34888771bd8aa94fd494e67af3d.zip |
Adding dehydrated tools.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to 'dehydrated/share/hooks/deploy_cert.fullchain-privkey')
-rwxr-xr-x | dehydrated/share/hooks/deploy_cert.fullchain-privkey | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/dehydrated/share/hooks/deploy_cert.fullchain-privkey b/dehydrated/share/hooks/deploy_cert.fullchain-privkey new file mode 100755 index 0000000..5457036 --- /dev/null +++ b/dehydrated/share/hooks/deploy_cert.fullchain-privkey @@ -0,0 +1,9 @@ +#!/bin/sh + +set -e + +DIRECTORY="$(dirname "${FULLCHAINFILE}")" +FILE="cert.fullchain-privkey-${TIMESTAMP}.pem" + +cat "${FULLCHAINFILE}" "${KEYFILE}" > "${DIRECTORY}/${FILE}" +ln -sf "${FILE}" "${DIRECTORY}/cert.fullchain-privkey.pem" |