diff options
author | Björn Lässig <b.laessig@pengutronix.de> | 2022-03-08 09:56:42 +0100 |
---|---|---|
committer | Björn Lässig <b.laessig@pengutronix.de> | 2022-03-08 09:56:42 +0100 |
commit | 0a06bdfe74950640cf4fad7781e7058aa38931a3 (patch) | |
tree | 195f6725d01359c74a0dc4317a918e82df8d4d05 | |
parent | a9b5f8dc7f01dca7fdbb2de3a4369dfe59e7347e (diff) | |
download | pengutronix-archive-keyring-0a06bdfe74950640cf4fad7781e7058aa38931a3.tar.gz pengutronix-archive-keyring-0a06bdfe74950640cf4fad7781e7058aa38931a3.tar.xz |
fix indentation - fix unintentional deletion
-rw-r--r-- | README.md | 33 |
1 files changed, 19 insertions, 14 deletions
@@ -2,22 +2,27 @@ ### generate a new key -$ umask 077 -$ tmpfile=$(mktemp) -$ cat > "$tmpfile" << EOF -Key-Type: RSA -Key-Length: 4096 -Key-Usage: sign -Name-Real: Pengutronix Archive Signing Key -Name-Comment: $(date +%Y) -Name-Email: archive@pengutronix.de -Expire-Date: $(date +%Y%m%dT000000 -d "April 14 next year") -EOF -$ gpg --batch --passphrase '' --pinentry-mode loopback --generate-key "$tmpfile" -$ rm "$tmpfile" + $ umask 077 + $ tmpfile=$(mktemp) + $ cat > "$tmpfile" << EOF + Key-Type: RSA + Key-Length: 4096 + Key-Usage: sign + Name-Real: Pengutronix Archive Signing Key + Name-Comment: $(date +%Y) + Name-Email: archive@pengutronix.de + Expire-Date: $(date +%Y%m%dT000000 -d "April 14 next year") + EOF + $ gpg --batch --passphrase '' --pinentry-mode loopback --generate-key "$tmpfile" + $ rm "$tmpfile" + +Then remove the the passphrase of the key using: + + $ gpgid=$(gpg --list-key --with-colons "Pengutronix Archive Signing Key ($year)" | awk -F: '$1 == "pub" { print $5 }') + $ gpg --edit-key $gpgid TODO: Learn how the non-interactive use of reprepro can be teached to -work in the presence of a passphrase. + work in the presence of a passphrase. ### put new key in pengutronix-archive-keyring |