<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dw="https://www.dreamwidth.org">
  <id>tag:dreamwidth.org,2010-03-06:483469</id>
  <title>Move along, nothing to read</title>
  <subtitle>A dis-illusioned software engineer</subtitle>
  <author>
    <name>robbat2</name>
  </author>
  <link rel="alternate" type="text/html" href="https://robbat2.dreamwidth.org/"/>
  <link rel="self" type="text/xml" href="https://robbat2.dreamwidth.org/data/atom"/>
  <updated>2015-06-12T17:54:14Z</updated>
  <dw:journal username="robbat2" type="personal"/>
  <entry>
    <id>tag:dreamwidth.org,2010-03-06:483469:238770</id>
    <link rel="alternate" type="text/html" href="https://robbat2.dreamwidth.org/238770.html"/>
    <link rel="self" type="text/xml" href="https://robbat2.dreamwidth.org/data/atom/?itemid=238770"/>
    <title>gnupg-2.1 mutt</title>
    <published>2015-06-05T17:25:29Z</published>
    <updated>2015-06-12T17:54:14Z</updated>
    <category term="gpg"/>
    <category term="cli"/>
    <category term="pgp"/>
    <category term="gentoo"/>
    <category term="mutt"/>
    <category term="gnupg"/>
    <dw:security>public</dw:security>
    <dw:reply-count>0</dw:reply-count>
    <content type="html">&lt;p&gt;For the mutt users with GnuPG, depending on your configuration, you might notice that mutt's handling of GnuPG mail stopped working with GnuPG. There were a few specific cases that would have caused this, which I'll detail, but if you just want it to work again, put the below into your &lt;tt&gt;Muttrc&lt;/tt&gt;, and make the tweak to &lt;tt&gt;gpg-agent.conf&lt;/tt&gt;. The underlying cause for most if it is that secret key operations have moved to the agent, and many Mutt users used the agent-less mode, because Mutt handled the passphrase nicely on it's own.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;tt&gt;-u&lt;/tt&gt; must now come BEFORE &lt;tt&gt;--cleansign&lt;/tt&gt;&lt;/li&gt;
&lt;li&gt;Add &lt;tt&gt;allow-loopback-pinentry&lt;/tt&gt; to &lt;tt&gt;gpg-agent.conf&lt;/tt&gt;, and restart the agent&lt;/li&gt;
&lt;li&gt;The below config adds &lt;tt&gt;--pinentry-mode loopback&lt;/tt&gt; before &lt;tt&gt;--passphrase-fd 0&lt;/tt&gt;, so that GnuPG (and the agent) will accept it from Mutt still.&lt;/li&gt;
&lt;li&gt;&lt;tt&gt;--verbose&lt;/tt&gt; is optional, depending what you're doing, you might find &lt;tt&gt;--no-verbose&lt;/tt&gt; cleaner.&lt;/li&gt;
&lt;li&gt;&lt;tt&gt;--trust-model always&lt;/tt&gt; is a personal preference for my Mutt mail usage, because I do try and curate my keyring&lt;/li&gt;
&lt;/ul&gt;

&lt;pre&gt;
set pgp_autosign = yes
set pgp_use_gpg_agent = no
set pgp_timeout = 600
set pgp_sign_as="(your key here)"
set pgp_ignore_subkeys = no

set pgp_decode_command="gpg %?p?--pinentry-mode loopback  --passphrase-fd 0? --verbose --no-auto-check-trustdb --batch --output - %f"
set pgp_verify_command="gpg --pinentry-mode loopback --verbose --batch --output - --no-auto-check-trustdb --verify %s %f"
set pgp_decrypt_command="gpg %?p?--pinentry-mode loopback --passphrase-fd 0? --verbose --batch --output - %f"
set pgp_sign_command="gpg %?p?--pinentry-mode loopback --passphrase-fd 0? --verbose --batch --output - --armor --textmode %?a?-u %a? --detach-sign %f"
set pgp_clearsign_command="gpg %?p?--pinentry-mode loopback --passphrase-fd 0? --verbose --batch --output - --armor --textmode %?a?-u %a? --detach-sign %f"
set pgp_encrypt_sign_command="pgpewrap gpg %?p?--pinentry-mode loopback --passphrase-fd 0? --verbose --batch --textmode --trust-model always --output - %?a?-u %a? --armor --encrypt --sign --armor -- -r %r -- %f"
set pgp_encrypt_only_command="pgpewrap gpg %?p?--pinentry-mode loopback --passphrase-fd 0? --verbose --batch --trust-model always --output --output - --encrypt --textmode --armor -- -r %r -- %f"
set pgp_import_command="gpg %?p?--pinentry-mode loopback --passphrase-fd 0? --verbose --import -v %f"
set pgp_export_command="gpg %?p?--pinentry-mode loopback --passphrase-fd 0? --verbose --export --armor %r"
set pgp_verify_key_command="gpg %?p?--pinentry-mode loopback --passphrase-fd 0? --verbose --batch --fingerprint --check-sigs %r"
set pgp_list_pubring_command="gpg %?p?--pinentry-mode loopback --passphrase-fd 0? --verbose --batch --with-colons --list-keys %r"
set pgp_list_secring_command="gpg %?p?--pinentry-mode loopback --passphrase-fd 0? --verbose --batch --with-colons --list-secret-keys %r"

&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src="https://www.dreamwidth.org/tools/commentcount?user=robbat2&amp;ditemid=238770" width="30" height="12" alt="comment count unavailable" style="vertical-align: middle;"/&gt; comments</content>
  </entry>
</feed>
