aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-01-09 13:19:16 -0200
committerSilvio Rhatto <rhatto@riseup.net>2010-01-09 13:19:16 -0200
commitf5167b4da8932ab525725895a38f28d76464e2af (patch)
tree9003e2e018ba2b80fdc8d39327e2bc490985ebe4
parent32380c6e7a0b04085adec8ebc037d6b8879d2c6e (diff)
downloadkeyringer-f5167b4da8932ab525725895a38f28d76464e2af.tar.gz
keyringer-f5167b4da8932ab525725895a38f28d76464e2af.tar.bz2
Using --armor on genpair
-rwxr-xr-xshare/keyringer/genpair10
1 files changed, 5 insertions, 5 deletions
diff --git a/share/keyringer/genpair b/share/keyringer/genpair
index acd9efa..723cd98 100755
--- a/share/keyringer/genpair
+++ b/share/keyringer/genpair
@@ -51,17 +51,17 @@ EOF
# Encrypt the result
echo "Encrypting secret key into keyringer..."
- gpg --homedir $WORK --export-secret-keys | keyringer_exec encrypt $BASEDIR $FILE
+ gpg --armor --homedir $WORK --export-secret-keys | keyringer_exec encrypt $BASEDIR $FILE
echo "Encrypting public key into keyringer..."
- gpg --homedir $WORK --export | keyringer_exec encrypt $BASEDIR $FILE.pub
+ gpg --armor --homedir $WORK --export | keyringer_exec encrypt $BASEDIR $FILE.pub
echo "Encrypting passphrase into keyringer..."
- echo "Passphrase for $FILE: $passphrase" | keyringer_exec encrypt $BASEDIR $FILE.passwd
+ echo "Passphrase for $FILE: $passphrase" | keyringer_exec encrypt $BASEDIR $FILE.passwd
if [ ! -z "$OUTFILE" ]; then
mkdir -p `dirname $OUTFILE`
echo Saving copies at $OUTFILE and $OUTFILE.pub
- gpg --homedir $WORK --export-secret-keys > $OUTFILE
- gpg --homedir $WORK --export > $OUTFILE.pub
+ gpg --armor --homedir $WORK --export-secret-keys > $OUTFILE
+ gpg --armor --homedir $WORK --export > $OUTFILE.pub
fi
echo "Done"