Commit 7f5dd7b6 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

Merge branch '5213-handle-dns-alias-domain' into 'master'

Bugfix: copy key from csr folder to ~/.acme/

See merge request open-source/iml-certman!2
parents 2e629052 310a56df
......@@ -27,6 +27,7 @@
# 2022-01-10 <> _wait_for_free_slot: exclude ssh calls
# 2022-03-30 <> remove usage of csr and generation of key file
# 2022-03-31 <> dns authentication with alias domain
# 2022-04-04 <> Bugfix: copy key from csr folder to ~/.acme/
# ======================================================================
......@@ -516,6 +517,20 @@ function public_renew(){
# BUGFIX: does not create a new key file on renew.
# After switching from csr method to pram -d we got a 0 byte Keyfile
local _acme_keyfile="~/.acme/${CM_fqdn}/${CM_fqdn}.key"
if test ! -f "$_acme_keyfile"
echo "FIX: copy key from csr folder $CM_filekey to $_acme_keyfile"
if ! cp "$CM_filekey" "$_acme_keyfile"
exit 1
$ACME --renew -d ${CM_fqdn} $ACME_Params
local _rc=$?
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment