[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: gpg & mutt



Incoming from S.D.A.:
> I'm having some difficulty getting pgp to work with mutt (1.5.6).
.....................................^^^

pgp or gpg?  My mutt is 1.3.28i (Woody).  gpg (GnuPG) 1.2.2

> The problem I'm having is that mutt can't seem to find my keys. I've

Do you have "gpa"?  That's a cute little gui for managing keys.
Perhaps that's where you say which is your default?  Anyway, all my
gpg stuff is in ~/.gnupg, and how it all works is defined in
~/.gnupg/options.  In mutt, I have these (all fairly stock, from
/etc/Muttrc):

   --------------------------------------------------------
set pgp_decode_command="/usr/bin/gpg   --status-fd=2 %?p?--passphrase-fd 0? --no-verbose --quiet  --batch  --output - %f"
set pgp_verify_command="/usr/bin/gpg   --status-fd=2 --no-verbose --quiet  --batch  --output - --verify %s %f"
set pgp_decrypt_command="/usr/bin/gpg   --status-fd=2 --passphrase-fd 0 --no-verbose --quiet  --batch  --output - %f"
set pgp_sign_command="/usr/bin/gpg    --no-verbose --batch --quiet   --output - --passphrase-fd 0 --armor --detach-sign --textmode %?a?-u %a? %f"
set pgp_clearsign_command="/usr/bin/gpg   --no-verbose --batch --quiet   --output - --passphrase-fd 0 --armor --textmode --clearsign %?a?-u %a? %f"
set pgp_encrypt_only_command="/usr/lib/mutt/pgpewrap /usr/bin/gpg    --batch  --quiet  --no-verbose --output - --encrypt --textmode --armor --always-trust -- -r %r -- %f"
set pgp_encrypt_sign_command="/usr/lib/mutt/pgpewrap /usr/bin/gpg  --passphrase-fd 0  --batch --quiet  --no-verbose  --textmode --output - --encrypt --sign %?a?-u %a? --armor --always-trust -- -r %r -- %f"
set pgp_import_command="/usr/bin/gpg  --no-verbose --import -v %f"
set pgp_export_command="/usr/bin/gpg   --no-verbose --export --armor %r"
set pgp_verify_key_command="/usr/bin/gpg   --verbose --batch  --fingerprint --check-sigs %r"
set pgp_list_pubring_command="/usr/bin/gpg   --no-verbose --batch --quiet   --with-colons --list-keys %r" 
set pgp_list_secring_command="/usr/bin/gpg   --no-verbose --batch --quiet   --with-colons --list-secret-keys %r" 
set pgp_good_sign="^\\[GNUPG:\\] VALIDSIG"
message-hook '!(~g|~G) ~b"^-----BEGIN\ PGP\ (SIGNED\ )?MESSAGE"' "exec check-traditional-pgp"
set pgp_autosign=no
set pgp_replyencrypt=yes
set pgp_timeout=1800
set pgp_create_traditional=ask-no
   --------------------------------------------------------

> been reading the Fine Manual, but it doesn't really go into, this is how
> one does this...for PGP/GPG anyway.
> 
> FWIW, when I attempt to sign, this is echo'ed " Can't sign: No key
> specified. use sign(as)"
> 
> OK, so when I attempt to sign(as) this is echo'ed "/.index: No such file
> or directory (errno = 2)"
> 
> Suggestions appreciated. I have created my keys and they're in the
> default location.
> 
> 

-- 
Any technology distinguishable from magic is insufficiently advanced.
(*)               http://www.spots.ab.ca/~keeling 
- -



Reply to: