Merge pull request #80861 from emilazy/acme-fullchain

nixos/acme: move the crt to fullchain.pem
This commit is contained in:
Silvan Mosberger 2020-02-26 00:48:53 +01:00 committed by GitHub
commit 5f37069888
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -325,10 +325,10 @@ in
KEY=${spath}/certificates/${keyName}.key
if [ -e $KEY -a $KEY -nt key.pem ]; then
cp -p ${spath}/certificates/${keyName}.key key.pem
cp -p ${spath}/certificates/${keyName}.crt cert.pem
cp -p ${spath}/certificates/${keyName}.crt fullchain.pem
cp -p ${spath}/certificates/${keyName}.issuer.crt chain.pem
cat cert.pem chain.pem > fullchain.pem
cat key.pem cert.pem chain.pem > full.pem
ln -s fullchain.pem cert.pem
cat key.pem fullchain.pem > full.pem
chmod ${rights} *.pem
chown '${data.user}:${data.group}' *.pem
fi