bundles/letsencrypt: fix some errors in letsencrypt-ensure-some-certificate
All checks were successful
bundlewrap/pipeline/head This commit looks good

This commit is contained in:
Franzi 2021-02-20 15:48:17 +01:00
parent 3fa81ddc85
commit 194de9ef2d
Signed by: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 5 additions and 1 deletions

View file

@ -23,7 +23,8 @@ fi
if [ "$already_exists" != true ]
then
mkdir -p "$cert_path"
openssl req -x509 -newkey rsa:4096 -nodes -days 3650 -subj "/CN=$domain" -keyout "$cert_path/privkey.pem" -out "$cert_path/fullchain.pem"
chmod 0600 "$cert_path/privkey.pem"
cp "$pubkey" "$cert_path/chain.pem"
cp "$cert_path/fullchain.pem" "$cert_path/chain.pem"
fi

View file

@ -24,6 +24,9 @@ for domain, _ in node.metadata.get('letsencrypt/domains').items():
'needed_by': {
'svc_systemd:nginx',
},
'triggers': {
'action:letsencrypt_update_certificates',
},
}
files = {