Re: [Trans] [trans] #79 (rfc6962-bis): Precertificate signaturemust be over something other than just the TBSCertificate

Rob Stradling <rob.stradling@comodo.com> Fri, 12 June 2015 13:31 UTC

Return-Path: <rob.stradling@comodo.com>
X-Original-To: trans@ietfa.amsl.com
Delivered-To: trans@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E6B1D1AC39E for <trans@ietfa.amsl.com>; Fri, 12 Jun 2015 06:31:04 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9] autolearn=ham
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 6EDBnZ51zviB for <trans@ietfa.amsl.com>; Fri, 12 Jun 2015 06:30:57 -0700 (PDT)
Received: from mmextmx1.mcr.colo.comodoca.net (mmextmx1.mcr.colo.comodoca.net [IPv6:2a02:1788:402:c00::c0a8:9cd5]) (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 1DFBA1AC39D for <trans@ietf.org>; Fri, 12 Jun 2015 06:30:56 -0700 (PDT)
Received: (qmail 5608 invoked by uid 1004); 12 Jun 2015 13:30:54 -0000
Received: from ian.brad.office.comodo.net (HELO ian.brad.office.comodo.net) (192.168.0.202) by mmextmx1.mcr.colo.comodoca.net (qpsmtpd/0.84) with ESMTP; Fri, 12 Jun 2015 14:30:54 +0100
Received: (qmail 7318 invoked by uid 1000); 12 Jun 2015 13:30:53 -0000
Received: from and0004.comodo.net (HELO [192.168.0.58]) (192.168.0.58) (smtp-auth username rob, mechanism plain) by ian.brad.office.comodo.net (qpsmtpd/0.40) with (AES128-SHA encrypted) ESMTPSA; Fri, 12 Jun 2015 14:30:53 +0100
Message-ID: <557ADF0D.4060801@comodo.com>
Date: Fri, 12 Jun 2015 14:30:53 +0100
From: Rob Stradling <rob.stradling@comodo.com>
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.7.0
MIME-Version: 1.0
To: Stephen Kent <kent@bbn.com>, trans@ietf.org
References: <064.abd6b6595a6018105f8527089cb573db@tools.ietf.org><079.727c660183267c66b37706330f6dc562@tools.ietf.org> <557A00A9.5010906@bbn.com>
In-Reply-To: <557A00A9.5010906@bbn.com>
Content-Type: text/plain; charset="windows-1252"; format="flowed"
Content-Transfer-Encoding: 7bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/trans/M2xJaXBPk6S0v4kf-ED3k6kGbvw>
Subject: Re: [Trans] [trans] #79 (rfc6962-bis): Precertificate signaturemust be over something other than just the TBSCertificate
X-BeenThere: trans@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Public Notary Transparency working group discussion list <trans.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/trans>, <mailto:trans-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/trans/>
List-Post: <mailto:trans@ietf.org>
List-Help: <mailto:trans-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/trans>, <mailto:trans-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 12 Jun 2015 13:31:05 -0000

On 11/06/15 22:42, Stephen Kent wrote:
> what does it mean to not be "an X509 signature"?
>
> I thought the intent was to use a CMS object, and thus the signature
> would be defined by that (profiled) CMS object.

Hi Steve.  That's correct.

At the top of ticket #79 I wrote:
"If I understand the CMS spec correctly, then we're currently defining a 
Precertificate to be a CMS structure that contains a TBSCertificate and 
a signature over just that TBSCertificate.
That means that the components of a Precertificate can be trivially 
rearranged into an X.509 certificate with a valid signature!"

It turns out that I didn't understand correctly.  :-)

Ben added some text to help clarify the situation:
"Note that, because of the structure of CMS, the signature on the CMS 
object will not be a valid X.509v3 signature and so cannot be used to 
construct a certificate from the precertificate."

>> #79: Precertificate signature must be over something other than just the
>> TBSCertificate
>>
>> Changes (by benl@google.com):
>>
>>   * milestone:   => review
>>
>>
>> Comment:
>>
>>   After discussion with Rob, core point is that the CMS signature is
>> not an X509 signature.
>>
>>   Fixed at https://github.com/google/certificate-transparency-
>>   rfcs/commit/546e6e9451186e96ddd7b54ca02f17c8d86f951e.

-- 
Rob Stradling
Senior Research & Development Scientist
COMODO - Creating Trust Online