diff --git a/tools/release.sh b/tools/release.sh index 3f6754275a9636..c465e8081028fb 100755 --- a/tools/release.sh +++ b/tools/release.sh @@ -97,7 +97,8 @@ function sign { scp ${webuser}@${webhost}:${shapath} ${tmpdir}/${shafile} - gpg --default-key $gpgkey --clearsign ${tmpdir}/${shafile} + gpg --default-key $gpgkey --clearsign --digest-algo SHA256 ${tmpdir}/${shafile} + gpg --default-key $gpgkey --detach-sign --digest-algo SHA256 ${tmpdir}/${shafile} echo "Wrote to ${tmpdir}/" @@ -117,7 +118,7 @@ function sign { fi if [ "X${yorn}" == "Xy" ]; then - scp ${tmpdir}/${shafile} ${tmpdir}/${shafile}.asc ${webuser}@${webhost}:${shadir}/ + scp ${tmpdir}/${shafile} ${tmpdir}/${shafile}.asc ${tmpdir}/${shafile}.sig ${webuser}@${webhost}:${shadir}/ break fi done