NetBSD-Users archive

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

Re: gpg2 with mutt



On Sat, Mar 09, 2019 at 04:22:34PM -0600, Edgar Pettijohn wrote:

> I don't know but you could easily test your hypothesis with a 
> symlink or putting /usr/pkg in your $PATH if it isn't already.

Good idea (tried it) but poor test result. Here's what worked for 
me, here, today; I cannot vouch if these conditions are not met by 
the reader. <g>

A couple of days ago, due to a long standing idiosyncratic aversion 
to having two versions of gpg installed simultaneously, I 
pkgin-removed gnupg, leaving only gnupg2. My bad.

I restored gnupg.

Then I found a 'gpg.rc' file from um another unix-like OS 
installation, and I sourced that in my ~/.muttrc. I had to edit a 
couple of lines to adjust for our /usr/pkg hierarchy to get pgpewrap 
info ply. I'll attach that for the morbidly curious.

And that was what worked.

-- 
In our age there is no such thing as 'keeping out of 
politics'. All issues are political issues, and 
politics itself is a mass of lies, evasions, folly, 
hatred, and schizophrenia.

  George Orwell "Politics and the English Language" (1946) 
# GnuPG configuration
set pgp_decode_command="gpg --status-fd=2 %?p?--passphrase-fd 0? --no-verbose --quiet --batch --output - %f"
set pgp_verify_command="gpg --status-fd=2 --no-verbose --quiet --batch --output - --verify %s %f"
set pgp_decrypt_command="gpg --status-fd=2 %?p?--passphrase-fd 0? --no-verbose --quiet --batch --output - %f"
set pgp_sign_command="gpg --no-verbose --batch --quiet --output - %?p?--passphrase-fd 0? --armor --detach-sign --textmode %?a?-u %a? %f"
set pgp_clearsign_command="gpg --no-verbose --batch --quiet --output - %?p?--passphrase-fd 0? --armor --textmode --clearsign %?a?-u %a? %f"

#set pgp_encrypt_only_command="/usr/lib/mutt/pgpewrap gpg --batch --quiet --no-verbose --output - --encrypt --textmode --armor --always-trust -- -r %r -- %f"
#set pgp_encrypt_sign_command="/usr/lib/mutt/pgpewrap gpg %?p?--passphrase-fd 0? --batch --quiet --no-verbose --textmode --output - --encrypt --sign %?a?-u %a? --armor --always-trust -- -r %r -- %f"
set pgp_encrypt_only_command="/usr/pkg/bin/pgpewrap gpg --batch --quiet --no-verbose --output - --encrypt --textmode --armor --always-trust -- -r %r -- %f"
set pgp_encrypt_sign_command="/usr/pkg/bin/pgpewrap gpg %?p?--passphrase-fd 0? --batch --quiet --no-verbose --textmode --output - --encrypt --sign %?a?-u %a? --armor --always-trust -- -r %r -- %f"

set pgp_import_command="gpg --no-verbose --import %f"
set pgp_export_command="gpg --no-verbose --export --armor %r"
set pgp_verify_key_command="gpg --verbose --batch --fingerprint --check-sigs %r"
set pgp_list_pubring_command="gpg --no-verbose --batch --quiet --with-colons --list-keys %r" 
set pgp_list_secring_command="gpg --no-verbose --batch --quiet --with-colons --list-secret-keys %r" 
set pgp_good_sign="^\\[GNUPG:\\] GOODSIG"

Attachment: signature.asc
Description: PGP signature



Home | Main Index | Thread Index | Old Index