Release Testing: Verifying that the stage files are signed and verifiable
When testing a release candidate, it is necessary to test whether the stage files are signed and those are verifiable ( md5, sha and asc verification). This can be a tedious task if not automated.
This guide uses Apache Airavata project to demonstrate the examples.
This guide uses Apache Airavata project to demonstrate the examples.
- First you need to install gpg You can download gpg from http://www.gnupg.org/download/
- Create directoryThis is where you will be doing the gpg testing.
- Import the signing keys to gpg Download the keys (https://svn.apache.org/repos/
asf/airavata/KEYS) and store them in a file.( simply copy and paste the content into a file).import the keys into the gpg gpg --import filename
for file in `find . -type f -not -name '*.asc' -not -name '*.md5' -not -name '*.sh' -not -name '*.sha'` do gpg --print-md SHA512 ${file} | diff - "${file}"".sha" | echo "testing : $file"".sha" done
gpg --print-md md5 ${file} | diff - "${file}"".md5" | echo "testing : $file"".md5"
gpg --verify ${file}
Comments
Post a Comment