From fbe7c0926b81390fd6743cc45828cdb485319dd5 Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Thu, 3 Feb 2011 15:51:13 +0000 Subject: rename generate-key.sh to generate-key --- generate-key | 32 ++++++++++++++++++++++++++++++++ generate-key.sh | 32 -------------------------------- 2 files changed, 32 insertions(+), 32 deletions(-) create mode 100755 generate-key delete mode 100755 generate-key.sh diff --git a/generate-key b/generate-key new file mode 100755 index 0000000..d41a90c --- /dev/null +++ b/generate-key @@ -0,0 +1,32 @@ +#!/bin/sh + +. ./config + +echo 'Today is :' +date +echo '(check if the date is correct and press enter)' +read z + +chmod 700 "$GPGHOMEDIR" + +echo "Generate key :" +gpg --homedir "$GPGHOMEDIR" --batch --gen-key "$INPUTDIR/board.batch" + +echo "Public key :" +gpg --homedir "$GPGHOMEDIR" --list-keys +gpg --homedir "$GPGHOMEDIR" --list-keys --fingerprint > "$PUBDIR/mageia-board-fingerprint.txt" +gpg --homedir homedir --export -a > "$pubkey" + +echo "Secret key :" +gpg --homedir "$GPGHOMEDIR" --list-secret-keys +gpg --homedir homedir --export-secret-keys -a > "$seckey" + +rm -Rf "$GPGHOMEDIR" + +echo "Generate passphrase" +./random-passphrase > "$passphrase" +gpg -c --passphrase-file "$passphrase" "$seckey" +rm -f "$seckey" + +#TODO : split secret key using ssss-split + diff --git a/generate-key.sh b/generate-key.sh deleted file mode 100755 index d41a90c..0000000 --- a/generate-key.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/sh - -. ./config - -echo 'Today is :' -date -echo '(check if the date is correct and press enter)' -read z - -chmod 700 "$GPGHOMEDIR" - -echo "Generate key :" -gpg --homedir "$GPGHOMEDIR" --batch --gen-key "$INPUTDIR/board.batch" - -echo "Public key :" -gpg --homedir "$GPGHOMEDIR" --list-keys -gpg --homedir "$GPGHOMEDIR" --list-keys --fingerprint > "$PUBDIR/mageia-board-fingerprint.txt" -gpg --homedir homedir --export -a > "$pubkey" - -echo "Secret key :" -gpg --homedir "$GPGHOMEDIR" --list-secret-keys -gpg --homedir homedir --export-secret-keys -a > "$seckey" - -rm -Rf "$GPGHOMEDIR" - -echo "Generate passphrase" -./random-passphrase > "$passphrase" -gpg -c --passphrase-file "$passphrase" "$seckey" -rm -f "$seckey" - -#TODO : split secret key using ssss-split - -- cgit v1.2.1