Re: [lamps] Request time in CMC

Stefan Santesson <stefan@aaa-sec.com> Wed, 27 October 2021 11:56 UTC

Return-Path: <stefan@aaa-sec.com>
X-Original-To: spasm@ietfa.amsl.com
Delivered-To: spasm@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id EB08F3A10D9 for <spasm@ietfa.amsl.com>; Wed, 27 Oct 2021 04:56:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.228
X-Spam-Level:
X-Spam-Status: No, score=-5.228 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, NICE_REPLY_A=-3.33, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 yG7DCHOXDTDJ for <spasm@ietfa.amsl.com>; Wed, 27 Oct 2021 04:56:18 -0700 (PDT)
Received: from smtp.outgoing.loopia.se (smtp.outgoing.loopia.se [93.188.3.37]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 74ACD3A10D7 for <spasm@ietf.org>; Wed, 27 Oct 2021 04:56:17 -0700 (PDT)
Received: from s807.loopia.se (localhost [127.0.0.1]) by s807.loopia.se (Postfix) with ESMTP id AA3332E8C9CD for <spasm@ietf.org>; Wed, 27 Oct 2021 13:56:13 +0200 (CEST)
Received: from s630.loopia.se (unknown [172.22.191.6]) by s807.loopia.se (Postfix) with ESMTP id 9AF862E31CA4; Wed, 27 Oct 2021 13:56:13 +0200 (CEST)
Received: from s470.loopia.se (unknown [172.22.191.6]) by s630.loopia.se (Postfix) with ESMTP id 8ECDD13ABF1E; Wed, 27 Oct 2021 13:56:13 +0200 (CEST)
X-Virus-Scanned: amavisd-new at amavis.loopia.se
Received: from s630.loopia.se ([172.22.191.5]) by s470.loopia.se (s470.loopia.se [172.22.190.10]) (amavisd-new, port 10024) with UTF8LMTP id ePApo47JaX6x; Wed, 27 Oct 2021 13:56:13 +0200 (CEST)
X-Loopia-Auth: user
X-Loopia-User: mailstore2@aaa-sec.com
X-Loopia-Originating-IP: 85.235.7.89
Received: from [192.168.2.50] (gw.aaa-sec.ideon.se [85.235.7.89]) (Authenticated sender: mailstore2@aaa-sec.com) by s630.loopia.se (Postfix) with ESMTPSA id DBFE713ABFDC; Wed, 27 Oct 2021 13:56:12 +0200 (CEST)
Message-ID: <26183bd1-dfd9-dc04-0933-58cef9d3feb4@aaa-sec.com>
Date: Wed, 27 Oct 2021 13:56:12 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:94.0) Gecko/20100101 Thunderbird/94.0
Content-Language: en-US
To: "Brockhaus, Hendrik" <hendrik.brockhaus@siemens.com>
Cc: LAMPS WG <spasm@ietf.org>
References: <99c05eec-5d98-ecf2-0e2f-5dbf6cd722ab@aaa-sec.com> <AM0PR10MB2418EB4D7F7DBB56AAB117CBFE859@AM0PR10MB2418.EURPRD10.PROD.OUTLOOK.COM>
From: Stefan Santesson <stefan@aaa-sec.com>
Organization: 3xA Security AB
In-Reply-To: <AM0PR10MB2418EB4D7F7DBB56AAB117CBFE859@AM0PR10MB2418.EURPRD10.PROD.OUTLOOK.COM>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/spasm/DSvwJXtwlMnYbISbqPu55j_MEQw>
Subject: Re: [lamps] Request time in CMC
X-BeenThere: spasm@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "This is a venue for discussion of doing Some Pkix And SMime \(spasm\) work." <spasm.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/spasm>, <mailto:spasm-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/spasm/>
List-Post: <mailto:spasm@ietf.org>
List-Help: <mailto:spasm-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/spasm>, <mailto:spasm-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 27 Oct 2021 11:56:23 -0000

Thanks Hendrik,

That is very good to know for the event that we have an opportunity to
change protocol to CMP.

But even if we do that, we still need our CMC implementation to work.

However, the presence of messageTime in CMP confirms the need of such
parameter also in CMC.

/Stefan


On 2021-10-27 10:50, Brockhaus, Hendrik wrote:
> Stefan
>
> I cannot comment on your decision using CMC. But using CMP you would have a senderNonce and recipNonce in addition to the messageTime available in the PKIHeader. This should provide all you need for replay protection, I guess.
> https://datatracker.ietf.org/doc/html/rfc4210#section-5.1.1
> https://datatracker.ietf.org/doc/html/draft-ietf-lamps-lightweight-cmp-profile-07#section-3.1
>
> Hendrik
>
>> Von: Spasm <spasm-bounces@ietf.org> Im Auftrag von Stefan Santesson
>> Gesendet: Mittwoch, 27. Oktober 2021 09:34
>>
>> I posted this in PKIX but I realize that this may be an issue that could be
>> discussed/handled in this group as it is somewhat related to CMS.
>>
>> I'm working on a project where we use CMC for some simple direct interaction
>> between an RA and a CA.
>>
>> We got stuck on replay protection that is essential for us. For this purpose there
>> is a nonce value, but no time when the request message was created.
>>
>> Without time information, replay protection will potentially have to save and
>> check against all nonces for eternity, which seems highly inefficient.
>>
>>
>> Our current solution is to create a new CMC control attribute with the
>> ASN.1 structure of GeneralizedTime defined as the "messageTime"
>>
>> (The term message time is used in the CMC document even though it is not
>> included in the protocol)
>>
>>
>> Questions:
>>
>> Are we correct or wrong in our assumptions?
>>
>> If we are correct, could LAMPS provide an OID for such control attribute?
>>
>> Or has such attribute already been defined elsewhere?
>>
>> I could write a short draft if this group would agree to define such attribute. It
>> would be a very short draft.
>>
>>
>> ________________
>> Stefan Santesson
>>
>> _______________________________________________
>> Spasm mailing list
>> Spasm@ietf.org
>> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.ietf
>> .org%2Fmailman%2Flistinfo%2Fspasm&amp;data=04%7C01%7Chendrik.brockha
>> us%40siemens.com%7Cd529e446258c46c49d2508d9991c2652%7C38ae3bcd95
>> 794fd4addab42e1495d55a%7C1%7C0%7C637709169030020766%7CUnknown%
>> 7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiL
>> CJXVCI6Mn0%3D%7C3000&amp;sdata=Tw9wag22PzLV8jyHIdUlUoYarhwSIl80Jb
>> RNghuJwHc%3D&amp;reserved=0