bundles/letsencrypt: ensure-some-certificate shouldn't create 10-year-certs
This commit is contained in:
parent
04450d4b4c
commit
de3580a7d3
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ if [ "$already_exists" != true ]
|
||||||
then
|
then
|
||||||
rm -r "$cert_path"
|
rm -r "$cert_path"
|
||||||
mkdir -p "$cert_path"
|
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"
|
openssl req -x509 -newkey rsa:4096 -nodes -days 1 -subj "/CN=$domain" -keyout "$cert_path/privkey.pem" -out "$cert_path/fullchain.pem"
|
||||||
chmod 0600 "$cert_path/privkey.pem"
|
chmod 0600 "$cert_path/privkey.pem"
|
||||||
cp "$cert_path/fullchain.pem" "$cert_path/chain.pem"
|
cp "$cert_path/fullchain.pem" "$cert_path/chain.pem"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue