From 2312afe9cdad0f4767b19b1ce91e7ce298e64985 Mon Sep 17 00:00:00 2001 From: Manuel Gauto Date: Mon, 18 Oct 2021 16:20:23 -0400 Subject: [PATCH] Set digest-algo for gpg to use SHA256 for linux packages. Signed-off-by: Manuel Gauto --- scripts/publish-deb | 6 +++--- scripts/publish-rpm | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/publish-deb b/scripts/publish-deb index 61dda147..77df8923 100755 --- a/scripts/publish-deb +++ b/scripts/publish-deb @@ -23,7 +23,7 @@ add_deb() { cp -f $3 $1/$2 pushd $1/$2 > /dev/null rm -f $(basename -- $3).asc - gpg --detach-sign --armor $(basename -- $3) + gpg --detach-sign --digest-algo SHA256 --armor $(basename -- $3) popd > /dev/null } @@ -63,7 +63,7 @@ update_repo() { ${release_dir} > ${release_dir}/Release # release signature - gpg --detach-sign --armor ${release_dir}/Release + gpg --detach-sign --digest-algo SHA256 --armor ${release_dir}/Release rm -f ${release_dir}/Release.gpg mv ${release_dir}/Release.asc ${release_dir}/Release.gpg @@ -129,4 +129,4 @@ aws s3 sync ${tmp_repo_path}/dists ${s3_bucket_repo}/dists --delete --acl public aws cloudfront create-invalidation --distribution-id ${AWS_CLOUDFRONT_DIST_ID} --paths ${cloudfront_path}/${debSuite}/${package} aws cloudfront create-invalidation --distribution-id ${AWS_CLOUDFRONT_DIST_ID} --paths ${cloudfront_path}/${debSuite}/${package}.asc -aws cloudfront create-invalidation --distribution-id ${AWS_CLOUDFRONT_DIST_ID} --paths ${cloudfront_path}/dists/* \ No newline at end of file +aws cloudfront create-invalidation --distribution-id ${AWS_CLOUDFRONT_DIST_ID} --paths ${cloudfront_path}/dists/* diff --git a/scripts/publish-rpm b/scripts/publish-rpm index bd5950de..c1c929be 100755 --- a/scripts/publish-rpm +++ b/scripts/publish-rpm @@ -22,7 +22,7 @@ add_rpm() { cp -f $2 $1 pushd $1 > /dev/null rm -f $(basename -- $2).asc - gpg --detach-sign --armor $(basename -- $2) + gpg --detach-sign --digest-algo SHA256 --armor $(basename -- $2) popd > /dev/null } @@ -33,7 +33,7 @@ update_repo() { pushd $1 > /dev/null createrepo --update --no-database . rm -f repodata/repomd.xml.asc - gpg --detach-sign --armor repodata/repomd.xml + gpg --detach-sign --digest-algo SHA256 --armor repodata/repomd.xml popd > /dev/null } @@ -93,4 +93,4 @@ aws s3 sync ${tmp_repo_path}/repodata ${s3_bucket_repo}/repodata --delete --acl aws cloudfront create-invalidation --distribution-id ${AWS_CLOUDFRONT_DIST_ID} --paths ${cloudfront_path}/${package} aws cloudfront create-invalidation --distribution-id ${AWS_CLOUDFRONT_DIST_ID} --paths ${cloudfront_path}/${package}.asc -aws cloudfront create-invalidation --distribution-id ${AWS_CLOUDFRONT_DIST_ID} --paths ${cloudfront_path}/repodata/* \ No newline at end of file +aws cloudfront create-invalidation --distribution-id ${AWS_CLOUDFRONT_DIST_ID} --paths ${cloudfront_path}/repodata/*