Encrypting / decrypting without importing keys?

David Shaw dshaw at jabberwocky.com
Tue Oct 5 22:08:42 CEST 2004


On Tue, Oct 05, 2004 at 08:04:35PM +0200, Andreas John wrote:
> Hi!
> 
> 
> > you can save a key into a file and use something like:
> > 
> >    gpg --no-default-keyring --keyring key-file --trust-model always -ear user
> 
> Actually you also have to add "--no-options" as there might be a
> multi-keyring-setup (one or more "--keyring file" in the gpg.conf).
> Unfortunately there is no "--no-keyrings-from-options" (or similar)
> which seems to bother no one :)

If you want to specify which keyring to import to in a multi-keyring
setup, specify the special one with "--primary-keyring".

David



More information about the Gnupg-users mailing list