Archive for the 'work' Category

Mar 08 2007

pgp exporting private keys

Published by rob under work

Every few months I am in the fun position of having to juggle around some PGP keys between servers. While doing this I always spend fifteen minutes trying to remember the right export commands so here for my own and google users reference:

export PGPPATH=”/path/to/pgp/”

This is used if you are using a none default PGP path.

To do the actual exporting you need four bits of info; the PGP command, PGP user, export filename and the location of the public and private key
pgp -kx $pgpuser $exportfilename secring.skr

Things dont get more exciting than that.

One response so far