summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_build.sh
diff options
context:
space:
mode:
authorChris Lamb <lamby@debian.org>2016-10-29 11:25:57 +0100
committerHolger Levsen <holger@layer-acht.org>2016-10-31 22:29:48 +0100
commitfadd6ac719be7514ee0f54a787b36df81fda17df (patch)
tree121c7ad5528dc60d4df6fb6f4756a9081d1c5376 /bin/reproducible_build.sh
parentd7866ad74d460bfd106720ed4b5b87bc08ab12e6 (diff)
downloadjenkins.debian.net-fadd6ac719be7514ee0f54a787b36df81fda17df.tar.xz
reproducible Debian: Greate GPG key on nodes at deploy time, not "lazily".
Signed-off-by: Chris Lamb <lamby@debian.org> Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin/reproducible_build.sh')
-rwxr-xr-xbin/reproducible_build.sh18
1 files changed, 0 insertions, 18 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index d4d2e584..a3772800 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -774,24 +774,6 @@ check_buildinfo() {
}
sign_buildinfo() {
- # Greate GPG key if it does not already exist
- if ! gpg --with-colons --fixed-list-mode --list-secret-keys | cut -d: -f1 | grep -qsFx 'sec' >/dev/null 2>&1
- then
- log_info "Generating GPG key"
-
- gpg --no-tty --batch --gen-key <<EOF
-Key-Type: RSA
-Key-Length: 4096
-Key-Usage: sign
-Name-Real: $(hostname -f)
-Name-Comment: Automatically generated key for signing .buildinfo files
-Expire-Date: 0
-%no-ask-passphrase
-%no-protection
-%commit
-EOF
- fi
-
log_info "Signing $BUILDINFO as $BUILDINFO_SIGNED"
gpg --output=$BUILDINFO_SIGNED --clearsign $BUILDINFO
log_info "Signed $BUILDINFO as $BUILDINFO_SIGNED"