Re: [therightkey] [cabfpub] Updated Certificate Transparency + Extended Validation plan

"kirk_hall@trendmicro.com" <kirk_hall@trendmicro.com> Tue, 11 February 2014 18:30 UTC

Return-Path: <kirk_hall@trendmicro.com>
X-Original-To: therightkey@ietfa.amsl.com
Delivered-To: therightkey@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id CEF431A06E4 for <therightkey@ietfa.amsl.com>; Tue, 11 Feb 2014 10:30:33 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.038
X-Spam-Level:
X-Spam-Status: No, score=-2.038 tagged_above=-999 required=5 tests=[BAYES_50=0.8, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-0.548, SPF_PASS=-0.001, T_REMOTE_IMAGE=0.01] 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 lnW-TsE-HH4T for <therightkey@ietfa.amsl.com>; Tue, 11 Feb 2014 10:30:28 -0800 (PST)
Received: from sjdciscan01.udc.trendmicro.com (sjdciscan01.udc.trendmicro.com [66.180.82.17]) by ietfa.amsl.com (Postfix) with ESMTP id 5BFFB1A06E0 for <therightkey@ietf.org>; Tue, 11 Feb 2014 10:30:28 -0800 (PST)
Received: from sjdciscan01.udc.trendmicro.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id BBDF53480F7; Tue, 11 Feb 2014 10:30:27 -0800 (PST)
Received: from SJDCEXCH02.us.trendnet.org (unknown [10.45.26.202]) by sjdciscan01.udc.trendmicro.com (Postfix) with ESMTP id AFE27348048; Tue, 11 Feb 2014 10:30:27 -0800 (PST)
Received: from SJDCEXMBX03.us.trendnet.org ([fe80::b99c:8504:fc41:2920]) by SJDCEXCH02.us.trendnet.org ([fe80::7428:736b:4a63:a6f0%20]) with mapi id 14.03.0158.001; Tue, 11 Feb 2014 10:30:26 -0800
From: "kirk_hall@trendmicro.com" <kirk_hall@trendmicro.com>
To: CABFPub <public@cabforum.org>
Thread-Topic: [cabfpub] Updated Certificate Transparency + Extended Validation plan
Thread-Index: AQHPJn1Lf/wdPWRmiU6b4/LwwgW0rpqwYH5A
Date: Tue, 11 Feb 2014 18:30:26 +0000
Message-ID: <EF70381B2D29784EA4FC66042BE81EAF1EB9FDB4@SJDCEXMBX03.us.trendnet.org>
References: <CABrd9STwBDxwB1vtmS9Ozb5e_7D=zfOqkOBeAaT2HG7X-cw5gw@mail.gmail.com> <52F25835.60702@comodo.com> <CAL9PXLzCqvBGW=Du9ZAdMXiVgcO8WJHXf+wG7EuzE2246TFEmg@mail.gmail.com> <52F27445.6040701@comodo.com> <CAL9PXLzfatu_2LNCrCAKZWYLJArXE7+PDXswGD5fYK0byg-iJQ@mail.gmail.com> <52F2811A.9030800@comodo.com> <CABrd9SSxLCMOFv7GszzDf-xbZMYUTP6N3WSbK=8NOM=nCBy=Bg@mail.gmail.com> <52F8A650.6060209@comodo.com> <CABrd9SSOijFe+B_zXoXKzVz67JPgFsj5g6+urBZ=R9QvYhWETA@mail.gmail.com> <52F8BCF5.4060506@comodo.com> <CAPZr7T+t7vcjoKo1u_7VRWAizysG3QJ-RSiJ7WnVoGNFDi2gqA@mail.gmail.com>
In-Reply-To: <CAPZr7T+t7vcjoKo1u_7VRWAizysG3QJ-RSiJ7WnVoGNFDi2gqA@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.30.173.61]
Content-Type: multipart/alternative; boundary="_000_EF70381B2D29784EA4FC66042BE81EAF1EB9FDB4SJDCEXMBX03ustr_"
MIME-Version: 1.0
X-TM-AS-MML: No
X-TM-AS-Product-Ver: IMSVA-8.2.0.1679-7.5.0.1017-20496.001
X-TMASE-Version: IMSVA-8.2.0.1679-7.5.1017-20496.001
X-TMASE-Result: 10--92.872400-5.000000
X-TMASE-MatchedRID: vWvnoyq7eMyQxSBF6iuIxihfkXJQ0v2poHOSwQSJZWjTi04NASO/NeYA h37ZsBDCNePNQCxEcft9Q5/gynnG1ltd8oZ0H4XrBn3hPeehyhUmupo8uESIT/zOShQnsZOJdl7 DHkZIxlCYf3r4ZCpo6pTVN3FiLkyoG+BgV9t6tu7e/Cwn+T0mju8OddJtGrGjPEvNRW6dl1ltdr 9d0G+tOvTWKs29qDlrM/dZg2GSzOXrbJ+dblsc90t8xr14ILk3F7nBLhzmytiC66rD6suanGMdY zySsvg8wFk84lhmgzyTMTaQzhvoeisFC/oQii5L1w2oUru1aWE2O3qnaevuHK8zfGxMvR+8Y6Gj tu6/t30Q2zDF7O7/jiKqCdRGXMBRq/32/J963ESSYAG4vpgb7NZpMXtnu7WlR7YjJ+7GUQyTeuX 4xo2DECDQvhfLY4eVXXcgqthMLBhT1rrN8sUDVuh0gvTBf35VacpE1GlTeUtgyQAHv9EXt+/1Oy ZjKYohH181YDtIVap9WQH9y/pSXchPTsVKofW/hED19NH5COasglNQLyiYOu+i/sPYbk7UR0BY8 wG7yRAfN1sSaNSB9V1elrlsxo2gYwC4oI83Ws3jCY5EoRRE2EaL0jQnHLXY8eApKlVnJ0mmG+fa k9r3aoVdLK46KrcftBJxpKi3RIxrZSmaQ7x/l6hXc8M1GpA5vt1d/1M1QiiOUv+G6OvDW7iMC5w dwKqdXvJL/s0A5TJaW2Ktn+I8/tJbhln2l+m6Fu25gKvbeeMVaGy/EyU2eeD2Gw854pMrJXKk/r oE/RCudq0Am+x7A8z1fqX318VPixll4b4uxTDi8zVgXoAlttVnSDvjSUv5mBJMroHl9O1SGbiD2 e4lZw26WqZTNzOIAqYBE3k9Mpw=
X-Mailman-Approved-At: Tue, 11 Feb 2014 10:32:07 -0800
Cc: "therightkey@ietf.org" <therightkey@ietf.org>, "certificate-transparency@googlegroups.com" <certificate-transparency@googlegroups.com>
Subject: Re: [therightkey] [cabfpub] Updated Certificate Transparency + Extended Validation plan
X-BeenThere: therightkey@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <therightkey.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/therightkey>, <mailto:therightkey-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/therightkey/>
List-Post: <mailto:therightkey@ietf.org>
List-Help: <mailto:therightkey-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/therightkey>, <mailto:therightkey-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 11 Feb 2014 18:31:15 -0000

Chema, thanks for posting the link to the EJBCA blog on pre-certificates.  I’ve pasted in the text below.  We should discuss these questions in Mountain View.

By the way, the blog below says that Certificate Transparency is supported in EJBCA Enterprise<http://www.primekey.se/Products/EJBCA+PKI/> as of EJBCA version 6.0.4.  However, in looking at the EJBCA website, that version has not yet been released, so any CA using EJBCA will not have updated software to use.

Kirk R. Hall
Operations Director, Trust Services
Trend Micro

*************

Certificate Transparency and PreCertificates, how will that work?

The Certificate Transparency initiative (RFC6962<http://tools.ietf.org/html/rfc6962>) is an admirable suggestion to improve security of TLS web session for certificates issued by public CAs. It has cool technology with Merkle trees, is admirable short and could have been straight forward was it not for something called PreCertificates. PreCertificates are hard for me to understand, I don't like them. I hope it is because I don't understand them...if so please let me know.

Writing this post is a way to sort things out for myself and I'd be happy to edit this post if explained why I "just don't get it". Of course I am posting this to the CT forum as well...

In the sake of transparency, I'm writing with the view point of an implementer of open source CA software<http://ejbca.org/> (if you didn't figure that one out from the blog name:-)).

Update 1: I got lots of comments already over at the Certificate Transparency Forum<https://groups.google.com/forum/?fromgroups#!topic/certificate-transparency/1tWzSXKe3gQ>, really good.

Update 2: I created an issue in the Certificate Transparency issue tracker. https://code.google.com/p/certificate-transparency/issues/detail?id=18

Update 3: Of course my views on CT changes as the discussion continues, the post below was my original starting point. Follow the discussion in Update 1 for updates.

Update 4: EJBCA supports Certificate Transparency in EJBCA Enterprise<http://www.primekey.se/Products/EJBCA+PKI/> as of EJBCA version 6.0.4.

On to PreCertificates...

PreCertificates are defined in section "3.1. Log Entries<http://tools.ietf.org/html/rfc6962#section-3.1>" as (text trimed by me) "The Precertificate is constructed from the certificate to be issued by adding a special critical poison extension to the end-entity TBSCertificate". Then it describes how it can be produced and it is mentioned throughout the spec in many places.
A PreCertificate is a essentially a certificate signed with one of two options:

1. PreCertificates signed by the real CA.
This sounds very dangerous as will break the fundamental X.509 rule of unique issuerDN/serialNumber pairs. The consequences of having two "certificates" with the same issuerDN/serialNumber in the wild can not possibly be estimated, making this practice quite dangerous imho.

2. PreCertificates signed by a separate PreCertificate signing CA, which is a SubCA to the real signing CA. This is a less scary, since it is normal practice that different CAs can issue certificate with the same subjectDN/serialNumber, just not the same issuerDN.

The actual implementation of issuing PreCertificates makes it quite impractical. I would believe that most CA implementations creates the TBSCertificate<http://tools.ietf.org/html/rfc5280#section-4.1.1.1> as part of the actual certificate issuance. The CA will not create the TBSCertificate to have is lying around for a couple of days before using it to issue the real certificate.
Thus, if the CA is to create a PreCertificate to send to the CT log, it might as well issue the real certificate and send it to the log. The time difference should be in the milliseconds for most CAs.
If the CA wants to wait before distributing the real certificate, to make sure it's in the logs before put into production, it can surely do so as well.

The PreCertificate imho suffers from several complicating factors for implementers, both on the CA and the CT log side. The TBSCertificate must have a poison extension inserted, and removed, effectively re-encoding the ASN.1 TBSCertificate several times, all these are points of failure.

The reason for PreCertificates are not clearly explained. Why would you want to use PreCertificates?

Fine combing through the spec gives me some ideas on why, for example to be able to embed the Certificate extension from PreCertificate CT logs in the final certificate (section 3.3<http://tools.ietf.org/html/rfc6962#section-3.3>) But the the TBSCertificate of the PreCertificate is then no longer the real TBSCertificate? In that case, why is the PreCertificate the TBSCertificate at all, and not just a new data structure with the data the CT log wants?

The PreCertificate complicates the CT spec by orders of magnitude, which is not a good thing. There are so many ifs and buts about PreCertificate the RFC is not even itself consitent about what it is.

Ok, I know the PreCertificate is is optional, but the best standards, who gets fast, wide and robust deployment, are the simpler ones (KISS). Skipping PreCertificates from the CT spec makes it so much simpler.

My suggestion:
- Skip PreCertificates altogether

I see though why people will not accept that just because I say something...so in that case

- Explain the purpose behind PreCertificates well
- Describe what the actual information fro PreCertificate are used
- Be consistent throughout in the RFC



From: public-bounces@cabforum.org [mailto:public-bounces@cabforum.org] On Behalf Of Chema López González
Sent: Monday, February 10, 2014 8:29 AM
To: Rob Stradling; certificate-transparency@googlegroups.com
Cc: therightkey@ietf.org; CABFPub
Subject: Re: [cabfpub] Updated Certificate Transparency + Extended Validation plan

Have anyone take into account the current position of EJBCA<http://blog.ejbca.org/2013/09/certificate-transparency-and.html>, a mayor player in this stuff of digital certificates?

To summarize:
"My suggestion:
- Skip PreCertificates altogether"

On the other hand, trying to use a thing that looks like a certificate (X.509v3) not to do the task of a certificate is like trying to use a screwdriver to nail nails.

We agree that the information contained in the precertificate is relevant, and that the signature of such information is also necessary, but maybe the container could be a different format or ASN.1 structure different from a X.509v3 cert.






[AC Firmaprofesional S.A.]<http://www.firmaprofesional.com/>


Chema López González

AC Firmaprofesional S.A.



Av. Torre Blanca, 57.
Edificio ESADECREAPOLIS - 1B13
08173 Sant Cugat del Vallès. Barcelona.
Tel: 93.477.42.45 / 666.429.224


El contenido de este mensaje y de sus anexos es confidencial. Si no es el destinatario, le hacemos saber que está prohibido utilizarlo, divulgarlo y/o copiarlo sin tener la autorización correspondiente. Si ha recibido este mensaje por error, le agradeceríamos que lo haga saber inmediatamente al remitente y que proceda a destruir el mensaje.

On Mon, Feb 10, 2014 at 12:50 PM, Rob Stradling <rob.stradling@comodo.com<mailto:rob.stradling@comodo.com>> wrote:
On 10/02/14 11:35, Ben Laurie wrote:
> On 10 February 2014 10:13, Rob Stradling <rob.stradling@comodo.com<mailto:rob.stradling@comodo.com>> wrote:
>> On 08/02/14 13:32, Ben Laurie wrote:
>>>
>>> On 5 February 2014 18:21, Rob Stradling <rob.stradling@comodo.com<mailto:rob.stradling@comodo.com>> wrote:
>>>>
>>>> On 05/02/14 17:49, Adam Langley wrote:
>>>>>
>>>>>
>>>>> On Wed, Feb 5, 2014 at 12:26 PM, Rob Stradling
>>>>> <rob.stradling@comodo.com<mailto:rob.stradling@comodo.com>>
>>>>> wrote:
>>>>>>
>>>>>>
>>>>>> Presumably it's somewhere between 10 and 31 days, since 1 SCT is
>>>>>> acceptable
>>>>>> for Stapled OCSP and the BRs permit OCSP Responses to be valid for up
>>>>>> to
>>>>>> 10
>>>>>> days.
>>>>>
>>>>>
>>>>>
>>>>> The speed at which we need to distrust a log depends on the minimum
>>>>> number of SCTs actually, which is why allowing a single SCT in stapled
>>>>> OCSP responses is such a large concession. If the minimum number of
>>>>> SCTs were two then the pressure to distrust a log (and the pressure on
>>>>> the logs) would be dramatically reduced because compromising one log
>>>>> wouldn't be sufficient.
>>>>>
>>>>>> Do you still think [1] is a good plan?
>>>>>
>>>>>
>>>>>
>>>>> Sure, if any CAs are willing to do it now :)
>>>>
>>>>
>>>>
>>>> I think "servers could just download their refreshed certificate over
>>>> HTTP
>>>> periodically and automatically" is the showstopper at the moment. Yes
>>>> they
>>>> could, but I'm not aware of any server that actually implements such a
>>>> feature.
>>>
>>>
>>> Work is under way for Apache: https://github.com/trawick/ct-httpd/.
>>
>>
>> That looks like great work, but AFAICT it's only for fetching SCTs from CT
>> Logs.
>>
>> I was talking about the lack of any mechanism in popular webserver software
>> for automatically fetching and installing certificates from CAs.  In
>> particular: a short-duration certificate that reuses the same public key as
>> the previous certificate.
>
> Ah, I see! But why would you need it if you can refresh the SCTs yourself?
To fix certificate revocation checking, by avoiding the need for it (as
Adam proposed a couple of years ago - see [1]).

But really, I was just trying to point out that just because CAs aren't
noticeably issuing short-duration certs today, it doesn't mean that they
won't do so in the future.  So I think it is worth permitting just 1
embedded SCT for short-duration certs (for some value of "short").


[1] https://www.imperialviolet.org/2011/03/18/revocation.html
"A much better solution would be for certificates to only be valid for a
few days and to forget about revocation altogether. This doesn't mean
that the private key needs to change every few days, just the
certificate. And the certificate is public data, so servers could just
download their refreshed certificate over HTTP periodically and
automatically (like OCSP stapling). Clients wouldn't have to perform
revocation checks (which are very complex and slow), CAs wouldn't have
to pay for massive, DDoS proof serving capacity and revocation would
actually work. If the CA went down for six hours, nobody cares. Only if
the CA is down for days is there a problem. If you want to “revoke” a
certificate, just stop renewing it."
--
Rob Stradling
Senior Research & Development Scientist
COMODO - Creating Trust Online
_______________________________________________
Public mailing list
Public@cabforum.org<mailto:Public@cabforum.org>
https://cabforum.org/mailman/listinfo/public


<table class="TM_EMAIL_NOTICE"><tr><td><pre>
TREND MICRO EMAIL NOTICE
The information contained in this email and any attachments is confidential 
and may be subject to copyright or other intellectual property protection. 
If you are not the intended recipient, you are not authorized to use or 
disclose this information, and we request that you notify us by reply mail or
telephone and delete the original message from your mail system.
</pre></td></tr></table>