#784: removed expired root certificate

from ca root certificate store: certificate “DST Root CA X3” used by
Lets Encrypt
This commit is contained in:
Andrey Prygunkov
2021-10-01 00:08:45 +02:00
parent ae81c9403d
commit 5e26d52d70
2 changed files with 4 additions and 0 deletions

View File

@@ -184,6 +184,8 @@ UpdateFromRepository()
echo "Updating root certificates"
cd ../setup
curl --remote-name --time-cond cacert.pem https://curl.se/ca/cacert.pem
# remove expired DST Root CA X3 certificate
sed '/^DST Root CA X3$/,/^-----END CERTIFICATE-----$/d;' -i cacert.pem
cd $BUILDDIR
fi
}

View File

@@ -95,6 +95,8 @@ echo Updating root certificates
cd image
%CURL% --remote-name --time-cond cacert.pem https://curl.se/ca/cacert.pem
if errorlevel 1 goto BUILD_FAILED
rem remove expired DST Root CA X3 certificate
%SED% -e "/^DST Root CA X3$/,/^-----END CERTIFICATE-----$/d;" -i cacert.pem
cd ..
cd tmp\nzbget-%VERSION%