#!/bin/sh # seckey2sshagent: this is a hack of a script to cope with the fact # that openpgp2ssh currently cannot support encrypted secret keys. # the basic operating principal is: # export the secret key in encrypted format to a new keyring # remove the passphrase in that keyring # use that keyring with openpgp2ssh # Authors: Daniel Kahn Gillmor , # Jameson Rollins cleanup() { echo -n "removing temp gpg home... " 1>&2 rm -rf $FOO echo "done." 1>&2 } trap cleanup EXIT #GPGID="$1" GPGID=$(echo "$1" | cut -c 25-) FOO=$(mktemp -d) gpg --export-secret-key $GPGID | GNUPGHOME="$FOO" gpg --import # idea to script the password stuff. not working. # read -s -p "enter gpg password: " PASSWD; echo # cmd=$(cat <Jonas Smedegaard
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2023-06-27 09:35:08 +0200
committerJonas Smedegaard <dr@jones.dk>2023-06-27 09:35:08 +0200
commitfd54908da2b05c526dd3bee9b6dcd093214a220d (patch)
treec69c845069c99d1d01044f6fafda7c08433329c6 /tags/02/12/BLU407-EAS194FB77477BB4133279448ECC480@phx.gbl/sugar
parentba46132213560cf3335d53560d519c0ec0190da2 (diff)
Diffstat (limited to 'tags/02/12/BLU407-EAS194FB77477BB4133279448ECC480@phx.gbl/sugar')