aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2011-02-03 00:02:56 +0000
committerNicolas Vigier <boklm@mageia.org>2011-02-03 00:02:56 +0000
commitefb88742f3e1849986352d2476c8b939981aa9b2 (patch)
tree3a0996cf99d7da5b44e665402f6b6a15e53774a6
parentff2b532e97f31b5dd5639cee11b9decc2d5deba3 (diff)
downloadgpg-efb88742f3e1849986352d2476c8b939981aa9b2.tar
gpg-efb88742f3e1849986352d2476c8b939981aa9b2.tar.gz
gpg-efb88742f3e1849986352d2476c8b939981aa9b2.tar.bz2
gpg-efb88742f3e1849986352d2476c8b939981aa9b2.tar.xz
gpg-efb88742f3e1849986352d2476c8b939981aa9b2.zip
generate random passphrase that will be used to encrypt private key
-rwxr-xr-xgenerate-key.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/generate-key.sh b/generate-key.sh
index e9763bf..ffa2a1c 100755
--- a/generate-key.sh
+++ b/generate-key.sh
@@ -29,5 +29,8 @@ gpg --homedir homedir --export-secret-keys -a > "$seckey"
rm -Rf "$GPGHOMEDIR"
+echo "Generate passphrase"
+./random-passphrase > "$PRIVDIR/passphrase"
+
#TODO : split secret key using ssss-split