unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
To: Justus Winter <justus@sequoia-pgp.org>,
	navse@mailbox.org,
	"notmuch@notmuchmail.org" <notmuch@notmuchmail.org>
Subject: certificate revocation checking for signed e-mail [was: Re: Emacs lagging for ~4min when opening from certain email.]
Date: Thu, 27 Jan 2022 19:13:16 -0500	[thread overview]
Message-ID: <87a6fgpvj7.fsf@fifthhorseman.net> (raw)
In-Reply-To: <8735ldxp5i.fsf@europ.lan>


[-- Attachment #1.1: Type: text/plain, Size: 2197 bytes --]

On Mon 2022-01-24 14:02:33 +0100, Justus Winter wrote:
> navse@mailbox.org writes:
>
>> I have been using Notmuch with Emacs for a couple of days and it has
>> been working great, except for when I open mails from a certain sender
>> with S/MIME signed messages, Emacs will freeze up for about 4 minutes.
>> Opening the expandable signature inside of the Email repeats the lag.
>
> Just to point you into the right direction, I'm pretty sure that this is
> gpgsm reaching out to a network server, maybe to fetch certificate
> revocation lists or something.

I think Justus is on target about what the issue is here.

GnuPG upstream appears to think that the privacy and latency costs of
default revocation checking are an acceptable tradeoff:

    https://dev.gnupg.org/T3348

The S/MIME standard barely touches on revocation checking, and doesn't
seem to mandate it or refuse it:

    https://www.rfc-editor.org/rfc/rfc8551.html

The IETF LAMPS working group has adopted a document about guidance for
end-to-end cryptographic protections for e-mail, which currently has a
FIXME in the section about revocation checking:

    https://www.ietf.org/archive/id/draft-ietf-lamps-e2e-mail-guidance-02.html#name-checking-for-revocation

I'm the original author and editor of that draft, and i would be *very*
happy to get additional feedback/suggestions/contributed text about what
folks think *should* be done here.

If you might be interested in making a contribution, the LAMPS WG
mailing list is spasm@ietf.org, or you can reply to me on this thread,
or you can open issues or merge requests at
https://gitlab.com/dkg/lamps-header-protection

Arguably for notmuch, one of the ways to address this (or at least to
amortize the costs) would be to cache the results of signature
verification so that it doesn't happen for every message every time you
view a thread.  Presumably a cached sig verification could also skip
over cert revocation checks.  See id:87sgodxlk0.fsf@fifthhorseman.net on
this mailing list (from me, Subject: "performance on long
encrypted+signed threads" Date: 2019-09-30) for more discussion of the
problem.  Regrettably, i haven't made any progress on fixing it.

        --dkg

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



      reply	other threads:[~2022-01-28 13:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-24  3:58 Emacs lagging for ~4min when opening from certain email navse
2022-01-24 12:58 ` David Bremner
2022-01-24 13:16   ` David Bremner
2022-01-24 13:02 ` Justus Winter
2022-01-28  0:13   ` Daniel Kahn Gillmor [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87a6fgpvj7.fsf@fifthhorseman.net \
    --to=dkg@fifthhorseman.net \
    --cc=justus@sequoia-pgp.org \
    --cc=navse@mailbox.org \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).