diff options
author | Nicolas Vigier <boklm@mageia.org> | 2011-02-06 14:41:22 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2011-02-06 14:41:22 +0000 |
commit | b9e52e08111e56e94526513bb8ab97c167edd350 (patch) | |
tree | d47d13547f9b21b28b49db0a633f03875e5673e2 | |
parent | 5a14bf8c93dbeb2e8da50d6c50f7a960182dd6e2 (diff) | |
download | gpg-b9e52e08111e56e94526513bb8ab97c167edd350.tar gpg-b9e52e08111e56e94526513bb8ab97c167edd350.tar.gz gpg-b9e52e08111e56e94526513bb8ab97c167edd350.tar.bz2 gpg-b9e52e08111e56e94526513bb8ab97c167edd350.tar.xz gpg-b9e52e08111e56e94526513bb8ab97c167edd350.zip |
add script to reimport private key using parts
-rwxr-xr-x | import-priv-key | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/import-priv-key b/import-priv-key new file mode 100755 index 0000000..f2595bf --- /dev/null +++ b/import-priv-key @@ -0,0 +1,14 @@ +#!/bin/sh + +. ./config + +./unsplit-passphrase + +mkdir -p "$GPGHOMEDIR" +chmod 700 "$GPGHOMEDIR" + +gpg --decrypt --passphrase-file "$passphrase" "$seckey_e" > "$seckey" +rm -f "$passphrase" +gpg --homedir "$GPGHOMEDIR" --import "$seckey" +rm -f "$seckey" + |