bundles/letsencrypt: fix some errors in letsencrypt-ensure-some-certificate
All checks were successful
bundlewrap/pipeline/head This commit looks good
All checks were successful
bundlewrap/pipeline/head This commit looks good
This commit is contained in:
parent
3fa81ddc85
commit
194de9ef2d
2 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -24,6 +24,9 @@ for domain, _ in node.metadata.get('letsencrypt/domains').items():
|
|||
'needed_by': {
|
||||
'svc_systemd:nginx',
|
||||
},
|
||||
'triggers': {
|
||||
'action:letsencrypt_update_certificates',
|
||||
},
|
||||
}
|
||||
|
||||
files = {
|
||||
|
|
Loading…
Reference in a new issue