Re: [Acme] I-D Action: draft-ietf-acme-email-smime-05.txt

Alexey Melnikov <alexey.melnikov@isode.com> Fri, 01 November 2019 17:15 UTC

Return-Path: <alexey.melnikov@isode.com>
X-Original-To: acme@ietfa.amsl.com
Delivered-To: acme@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 90CFE120C76 for <acme@ietfa.amsl.com>; Fri, 1 Nov 2019 10:15:36 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=isode.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7JshLFUR1xpD for <acme@ietfa.amsl.com>; Fri, 1 Nov 2019 10:15:35 -0700 (PDT)
Received: from statler.isode.com (Statler.isode.com [62.232.206.189]) by ietfa.amsl.com (Postfix) with ESMTP id D3D8D1209FA for <acme@ietf.org>; Fri, 1 Nov 2019 10:15:34 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1572628534; d=isode.com; s=june2016; i=@isode.com; bh=aKZTu6WTzRGUS7CVHw1BVpLjq4mJwkQxstsVUsVWwKk=; h=From:Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version: In-Reply-To:References:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description; b=QquFnMZvUBygYpB6NPzn28g7BC3ysa3N/o83Rdt1E6eAG0Nb4WIxKtsn37oHMBxrklt3EB Rv3bM5JWkd000tvLLZ5lHyQKcZgkzVg2wMmrtxMEJxmqKFfd76pT5x+eTg5ZdKKWcI9Ez8 CaQl9NIhOmHwMAbjOWBYb1ov1/xyoX0=;
Received: from [172.20.1.215] (dhcp-215.isode.net [172.20.1.215]) by statler.isode.com (submission channel) via TCP with ESMTPSA id <XbxoNQB8p5jV@statler.isode.com>; Fri, 1 Nov 2019 17:15:33 +0000
From: Alexey Melnikov <alexey.melnikov@isode.com>
To: "Gerd v. Egidy" <gerd.von.egidy@intra2net.com>, acme@ietf.org
References: <156260109884.927.16438195900063865237@ietfa.amsl.com> <7748947.5WVZ9h9HFT@thunder.m.i2n>
Message-ID: <7e3dfea8-b089-6013-5fb3-65f6d6224e03@isode.com>
Date: Fri, 01 Nov 2019 17:14:38 +0000
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.0
In-Reply-To: <7748947.5WVZ9h9HFT@thunder.m.i2n>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="------------2C3C55B31100339C632292B0"
Content-Language: en-GB
Archived-At: <https://mailarchive.ietf.org/arch/msg/acme/BEFv6ewFUceeVTg-EdURPO9Lb7k>
Subject: Re: [Acme] I-D Action: draft-ietf-acme-email-smime-05.txt
X-BeenThere: acme@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Automated Certificate Management Environment <acme.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/acme>, <mailto:acme-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/acme/>
List-Post: <mailto:acme@ietf.org>
List-Help: <mailto:acme-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/acme>, <mailto:acme-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 01 Nov 2019 17:15:40 -0000

Hi Gerd,

Thank you very much for your comments and sorry for taking long time to 
reply to you.

On 15/07/2019 14:01, Gerd v. Egidy wrote:
> Hi Alexey,
>
> thanks for continuing your work on the smime draft.
>
>> 1.  Do we need to handle text/html or multipart/alternative in email
>>        challenge?  Simplicity suggests "no".  However, for automated
>>        processing it might be better to use at least multipart/mixed
>>        with a special MIME type.
> hmm. I guess with "automated processing" you mean an acme client on the user
> side.
>
> How would a multipart/mixed with a special MIME type help implementing the
> client?
>
> The client just needs to detect the challenge email and extract <token-part1>
> from the Subject:-Header. What other data, that could be in the part with the
> special mime type, would help implementing such a client?
In many clients automatic processing can be invoked based on receiving a 
particular media type. Also, if an external application is used to 
handle challenge, it can be associated with a particular media type of 
various operating systems.
> An ACME CA might want to include multipart/alternative and text/html to
> present nicely formatted usage instructions to the user when the ACME client
> is not integrated into the MUA. Automated clients should not be confused by
> such messages.
This is one of my open issues. I would like to make implementations of 
ACME S/MIME-aware clients as easy as possible. If you have a generic 
email client, support for HTML is pretty much required. But if you don't 
have a generic email client, adding support for HTML might be an extra 
burden. So my question is: does better display of instructions to users 
outweigh extra complexity of handling of text/html? (I am on the fence 
on this. I think you are arguing that the answer is "yes").
> The same is true for the challenge response:
>
> When the user manully copies the response from his ACME client program into
> his regular MUA, the MUA may compose a multipart/alternative mail with text/
> html and text/plain or even just text/html. Also some company disclaimers and
> so on could be added automatically.
>
> How about using something like in RFC 7468?


> -----BEGIN ACME RESPONSE-----
> LoqXcYV8q5ONbJQxbmR7SCTNo3tiAXDfowy
> jxAjEuX0.9jg46WB3rR_AHD-EBXdN7cBkH1WOu0tA3M9
> fm21mqTI
> -----END ACME RESPONSE-----
>
> This would allow the ACME server to extract the relevant data from most of
> such emails by stripping all html tags and ignoring everything outside the
> BEGIN/END block.

Having recently added HTML tag stripping in an email server, I think 
this is a big implementation burden, so I would prefer not to do that.

In regards to using something like RFC 7468: I think adding BEGIN/END 
wrapper would provide some extra help in detecting invalid content, so I 
will add it to the document.

> We also should not force the response email to use a subject of "Re: ACME:
> <token-part1>", just "<something>ACME: <token-part1>" because MUAs with non-
> english language settings may use something else than "Re:" to denote a reply.

I really dislike email clients using localized versions of "Re:", but I 
think you are right :-).

Best Regards,

Alexey