Re: [openpgp] Transport public keys inside the message body

Simon Josefsson <simon@josefsson.org> Thu, 15 February 2024 08:01 UTC

Return-Path: <simon@josefsson.org>
X-Original-To: openpgp@ietfa.amsl.com
Delivered-To: openpgp@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 68FFCC14F5F4 for <openpgp@ietfa.amsl.com>; Thu, 15 Feb 2024 00:01:54 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.108
X-Spam-Level:
X-Spam-Status: No, score=-7.108 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=neutral reason="invalid (unsupported algorithm ed25519-sha256)" header.d=josefsson.org header.b="gpaH8kuf"; dkim=pass (2736-bit key) header.d=josefsson.org header.b="izqQzdUB"
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id STOUzAh-lrPI for <openpgp@ietfa.amsl.com>; Thu, 15 Feb 2024 00:01:48 -0800 (PST)
Received: from uggla.sjd.se (uggla.sjd.se [IPv6:2001:9b1:8633::107]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id CE473C14F603 for <openpgp@ietf.org>; Thu, 15 Feb 2024 00:01:47 -0800 (PST)
DKIM-Signature: v=1; a=ed25519-sha256; q=dns/txt; c=relaxed/relaxed; d=josefsson.org; s=ed2303; h=Content-Type:MIME-Version:Message-ID:In-Reply-To :Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding :Content-ID:Content-Description; bh=iJcQF5KO3mRRCpHq+tZnmKkR0hkL2C+LL9DYgmOmWFQ=; t=1707984106; x=1709193706; b=gpaH8kufpKX9EmHzTBF4rIkzKEirllewPra7nsVYkKDEwR/BtXNtdDdr8m491YjnFs9sAXSG2Ry mnSbLz+QbCw==;
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=josefsson.org; s=rsa2303; h=Content-Type:MIME-Version:Message-ID: In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=iJcQF5KO3mRRCpHq+tZnmKkR0hkL2C+LL9DYgmOmWFQ=; t=1707984106; x=1709193706; b=izqQzdUBcbqdj/jw+UVz7Ii2RUXnG+BJtS8FTLeihCb/GxM9KD2lCrsH6Rwpbb0vMqC1tcvU6q/ GNu0cLjmJCNzw5yLmF3AVQHLp9Ez2IPMhhrcqOFMa0FbWKGWqmpGcxVsEfJElkjEuP2B+y1qZHEwe wUqBUFxevrnQ3xoHF0I4EGqp0MO3lH6HNAi+8qfytxkXdo0jqGR37s/CxcWBarEQIOK6UfUL0sjC5 Vv6JVxQzJTwUEAxkdyz06GShJD0hGXu6YgHrDVP7EloU0bDz/CNgOeXOXjbhHVFCkkt6/xWPDbiFZ a02LmI1/ddJ0jYMrQxtnvIACwxjrRm/GfcGl+bVSrKoAC0zcvTOho6/bVl96pZ31kvx1i5aW5zQEn tOgdRr4J/+KYVPQVszysWxwDlFLWXV15TeYuvy69FcDILvEMnUdA54afB5eAz0kDI5pRXojj3;
Received: from [2001:9b1:41ac:ff00:823f:5dff:fe09:16ac] (port=38890 helo=kaka) by uggla.sjd.se with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from <simon@josefsson.org>) id 1raWgf-001TN6-6t; Thu, 15 Feb 2024 08:01:41 +0000
From: Simon Josefsson <simon@josefsson.org>
To: Kai Engert <kaie@kuix.de>
Cc: "openpgp@ietf.org" <openpgp@ietf.org>
References: <33b847dd-2dfc-4741-a415-d4636642fef1@kuix.de>
OpenPGP: id=B1D2BD1375BECB784CF4F8C4D73CF638C53C06BE; url=https://josefsson.org/key-20190320.txt
X-Hashcash: 1:23:240215:kaie@kuix.de::6XZ0jqoEBdAiXlhN:216g
X-Hashcash: 1:23:240215:openpgp@ietf.org::1ImlqdkYgjwPYIAp:0AaEJ
Date: Thu, 15 Feb 2024 09:02:03 +0100
In-Reply-To: <33b847dd-2dfc-4741-a415-d4636642fef1@kuix.de> (Kai Engert's message of "Thu, 15 Feb 2024 08:31:36 +0100")
Message-ID: <871q9e40lg.fsf@kaka.sjd.se>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg="pgp-sha256"; protocol="application/pgp-signature"
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/AJh9RNeSuPFnymcz3ERCvKq3vhM>
Subject: Re: [openpgp] Transport public keys inside the message body
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 15 Feb 2024 08:01:54 -0000

Kai Engert <kaie@kuix.de> writes:

> I suggest to specify a way to transport public keys as part of the
> message body of a MIME message. I assume it would be necessary to
> amend the PGP/MIME specification to do so?

I agree this is useful -- getting keys from people who send me signed
PGP email these days is challenging.  Including the public PGP key in
every e-mail is not that costly.

I re-read RFC 3156 and one way to do this is "extend" it by allowing
putting a public key block before or after the '-----BEGIN PGP
MESSAGE-----' block, and say that MUAs can parse those blocks to find
keys.  Yes, that is a bit ugly, but overall complexity is lower than
having multipart MIME blobs with an extra application/pgp-keys
component, and solves the problem of locating which public key was (by
the sender) intended for use with the signature.

Maybe the old OpenPGP: e-mail header with fingerprint and URL should be
revived...  https://josefsson.org/openpgp-header/ and
https://datatracker.ietf.org/doc/html/draft-josefsson-openpgp-mailnews-header

/Simon