Re: [Trans] Can logs return SCTs that correspond to Precerts in response to add-chain?

Rob Stradling <rob.stradling@comodo.com> Mon, 21 August 2017 10:35 UTC

Return-Path: <rob.stradling@comodo.com>
X-Original-To: trans@ietfa.amsl.com
Delivered-To: trans@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 94AE81329BE for <trans@ietfa.amsl.com>; Mon, 21 Aug 2017 03:35:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.19
X-Spam-Level:
X-Spam-Status: No, score=-4.19 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, T_SPF_PERMERROR=0.01] 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 qAgw1rgSh2gI for <trans@ietfa.amsl.com>; Mon, 21 Aug 2017 03:35:26 -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 C78421329B3 for <trans@ietf.org>; Mon, 21 Aug 2017 03:35:25 -0700 (PDT)
Received: (qmail 25345 invoked by uid 1004); 21 Aug 2017 10:35:23 -0000
Received: from rmdccgwarp1.reyn.mcr.dc.comodo.net (HELO maileu.comodo.net) (10.1.72.82) by mmextmx1.mcr.colo.comodoca.net (qpsmtpd/0.84) with ESMTP; Mon, 21 Aug 2017 11:35:23 +0100
Received: from [192.168.0.58] ([192.168.0.58]) by maileu.comodo.net (IceWarp 11.4.6.0 DEB8 x64) with ASMTP (SSL) id 201708211135202551; Mon, 21 Aug 2017 11:35:20 +0100
To: Tom Ritter <tom@ritter.vg>, "trans@ietf.org" <trans@ietf.org>
References: <CA+cU71mvAWRvde4Nga55OLD+3mET_7sbc-RsPmE02E2-UNpBsg@mail.gmail.com>
From: Rob Stradling <rob.stradling@comodo.com>
Message-ID: <b5c69969-6113-2c0a-5bd1-f5261437e995@comodo.com>
Date: Mon, 21 Aug 2017 11:35:20 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0
MIME-Version: 1.0
In-Reply-To: <CA+cU71mvAWRvde4Nga55OLD+3mET_7sbc-RsPmE02E2-UNpBsg@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Language: en-US
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/trans/kIhKsL0zhbGx0_AZgTJ9MKfpvRw>
Subject: Re: [Trans] Can logs return SCTs that correspond to Precerts in response to add-chain?
X-BeenThere: trans@ietf.org
X-Mailman-Version: 2.1.22
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: <https://mailarchive.ietf.org/arch/browse/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: Mon, 21 Aug 2017 10:35:30 -0000

On 18/08/17 21:15, Tom Ritter wrote:
> Ran into a question I didn't know the answer to, hopefully easy.
> 
> If a client submits a chain of valid certificates to a log (via
> add-chain), but the leaf certificate was already added to the log as a
> precert - is the log allowed to return the SCT associated with the
> precert rather than the certificate?

Hi Tom.  The specification of the submit-entry endpoint [1] says:

   'Outputs:
       sct:  A base64 encoded "TransItem" of type "x509_sct_v2" or
          "precert_sct_v2", signed by this log, that corresponds to the
          "submission".'

Arguably a precert SCT does "correspond to" a certificate.  However, 
earlier in the document [2] it says:

   '...Note that if a certificate was previously logged as a
    precertificate, then the precertificate's SCT of type
    "precert_sct_v2" would not be appropriate; instead, a fresh
    SCT of type "x509_sct_v2" should be generated.'


[1] https://tools.ietf.org/html/draft-ietf-trans-rfc6962-bis-26#section-5.1

[2] https://tools.ietf.org/html/draft-ietf-trans-rfc6962-bis-26#section-4

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