aboutsummaryrefslogtreecommitdiffstats
path: root/import-priv-key
blob: f2595bf35b308984a2690bd11ff5a15afed7f786 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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"