2 Q's

Robert J. Hansen rjh at sixdemonbag.org
Tue Aug 16 15:00:47 CEST 2016


> 1)  How can I set the time for retention of the Passphrase?

This depends on what version of GnuPG you're using.  The mechanism
changed between GnuPG 1.4 and 2.0.  Look for a configuration file called
"gpg-agent.conf" (normally found in ~/.gnupg; dunno where it would be
stored on iOS).  Open it up with your favorite text editor and look for
the line:

default-cache-ttl <some-number>

That's the duration, in seconds, your passphrase will be retained.  3600
seconds is one hour, and 86400 seconds is one day.

> 2) What is the best way to automatically send my Public Key to message
> recipients?

Don't.  Public keys are big and a little obnoxious.  Send your public
certificate to a keyserver.  In your email signature, you can say
something like "OpenPGP Certificate ID: 1DCBDC01B44427C7".  Anyone can
then retrieve your public certificate by typing something like:

$ gpg --keyserver pool.sks-keyservers.net --recv-key 1DCBDC01B44427C7

... and presto, they get it and import it into GnuPG, all in one statement.



More information about the Gnupg-users mailing list