Re: [pkix] [x500standard] Re: SV: Private key usage period extension

"Erik Andersen" <era@x500.eu> Fri, 06 May 2016 13:46 UTC

Return-Path: <era@x500.eu>
X-Original-To: pkix@ietfa.amsl.com
Delivered-To: pkix@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8402C12D57F for <pkix@ietfa.amsl.com>; Fri, 6 May 2016 06:46:36 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.619
X-Spam-Level:
X-Spam-Status: No, score=-2.619 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-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 LdMdthx_l9Zq for <pkix@ietfa.amsl.com>; Fri, 6 May 2016 06:46:33 -0700 (PDT)
Received: from mail04.dandomain.dk (mail04.dandomain.dk [194.150.112.204]) (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 B145212D197 for <pkix@ietf.org>; Fri, 6 May 2016 06:46:32 -0700 (PDT)
Received: from Morten ([62.44.134.200]) by mail04.dandomain.dk (DanDomain Mailserver) with ASMTP id 4201605061546262207; Fri, 06 May 2016 15:46:26 +0200
From: "Erik Andersen" <era@x500.eu>
To: <x500standard@freelists.org>, "'PKIX'" <pkix@ietf.org>
References: <000901d1a773$379e1680$a6da4380$@x500.eu> <572C6980.8000808@cs.tcd.ie> <CA+i=0E6oo1hZSbyN_xYM1oB4-gKiuxCx-OotqAVz+G6Z7S6uJA@mail.gmail.com> <005501d1a792$626cdb20$27469160$@x500.eu> <AC93E3F3-8F1E-4395-84A6-245E5EE8B5CE@aaa-sec.com>
In-Reply-To: <AC93E3F3-8F1E-4395-84A6-245E5EE8B5CE@aaa-sec.com>
Date: Fri, 6 May 2016 15:46:27 +0200
Message-ID: <007d01d1a79d$b0410410$10c30c30$@x500.eu>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_NextPart_000_007E_01D1A7AE.73CBF6F0"
X-Mailer: Microsoft Outlook 15.0
Thread-Index: AQJYEc9fvtVi9SNiQE1fwP6vqYjwqAK1ra7zAi9++poB/9jKawGvQ6J4nlpwAYA=
Content-Language: en-gb
Archived-At: <http://mailarchive.ietf.org/arch/msg/pkix/9rLS-VEv3rO-02AaeJXJVgEaMaw>
Subject: Re: [pkix] [x500standard] Re: SV: Private key usage period extension
X-BeenThere: pkix@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: PKIX Working Group <pkix.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/pkix>, <mailto:pkix-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/pkix/>
List-Post: <mailto:pkix@ietf.org>
List-Help: <mailto:pkix-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/pkix>, <mailto:pkix-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 06 May 2016 13:46:36 -0000

Hi Stefan,

 

Thanks for the clarification. You wrote at some time that the extension is not worth fixing. It is against my responsibility as rapporteur and editor. If it is broken it shall be fixed or deprecated.

 

I have one issue left. I do not like that either notBefore or notAfter can be omitted. notAfter could mean that the private key is valid until the sun burns out. If not specified, it could default the end of the validity of the cert validity period. Something similar for an omitted notBefore.

 

Erik

 

Fra: x500standard-bounce@freelists.org [mailto:x500standard-bounce@freelists.org] På vegne af Stefan Santesson
Sendt: 06 May 2016 15:10
Til: x500standard@freelists.org; PKIX <pkix@ietf.org>
Emne: [x500standard] Re: SV: [pkix] Private key usage period extension

 

In line;

 

From: <x500standard-bounce@freelists.org <mailto:x500standard-bounce@freelists.org> > on behalf of Erik Andersen <era@x500.eu <mailto:era@x500.eu> >

OK, it is being used. I have seen no reason so far that the private key use period starts before and/or ends after the certificates validity period.

 

 

I just posed one.

Actually I would rather see this period extend the certificate than being shorter than the certificate.

 

Having it longer than the certificate will not impact validation (see below). Having it shorter may cause confusion and potentially security issues.

Having a shorter private key period may create expectations that a verifier will honor this period fail validation if a signature was created outside of this period.

I doubt that there are many signature validation applications that actually would process this extension if present. Resulting in false positive validation result.

 

If I get a message together with a certificate and the message is signed after the certificate validity period, but before the notAfter for the private key usage period, what do I do? Consider the certificate invalid and discard the message

 

Yes, because you don’t have a valid certificate for this signature.

 

or do I validate the signature with the public key I am not supposed to use anymore.

 

No. As the certificate is not valid, you stop there. No information in a certificate that is not valid is of any interest to you.

 

 

It is of no help to me that there may be another certificates with the same key pair, where the certificate validity period is different. I might not know those certificates.

 

Exactly. If you don’t have a valid certificate. You fail.

 

 

 

Regards,

 

Erik

 

Fra: Erwann Abalea [mailto:eabalea@gmail.com] 

 

This extension is heavily used in electronic passports.

ICAO has set it to be mandatory for Root CA and Document Signer certificates (subscriber certs used to verify data in passports), and optional for MasterList signers.

 

It is typical that closed community applications can make use of odd extensions in a successful manner as they are governed by extended specifications and profiles.

 

 

This extension was already deprecated in RFC2459.

 

 

2016-05-06 11:53 GMT+02:00 Stephen Farrell <stephen.farrell@cs.tcd.ie <mailto:stephen.farrell@cs.tcd.ie> >:


Hi Erik,

I've a separate question: does anyone use this extension
or should we put it on a virtual/mental list of stuff to
be deprecated when/if someone has the energy?

S.

On 06/05/16 09:42, Erik Andersen wrote:
> X.509 has a specification of the Private key usage period extension
> (8.2.2.5). This extension is a little confusing. It has notBefore and
> notAfter specification. However, the text says:
>
> The notBefore component indicates the earliest date and time at which the
> private key could be used for signing. If the notBefore component is not
> present, then no information is provided as to when the period of valid use
> of the private key commences. The notAfter component indicates the latest
> date and time at which the private key could be used for signing. If the
> notAfter component is not present then no information is provided as to when
> the period of valid use of the private key concludes.
>
> With a little ill will, this can be read as the private key validation
> period may extend beyond the validity of the public key. Note 1 adds to the
> confusing, as it says:
>
> NOTE 1 - The period of valid use of the private key may be different from
> the certified validity of the public key as indicated by the certificate
> validity period. With digital signature keys, the usage period for the
> signing private key is typically shorter than that for the verifying public
> key.
>
> It is the word "typical" that confuses me. It implies it could be different.
>
> This extension was included in RFC 3280 with a heavy health warning. It was
> omitted from RFC 5280 (except for A.2).
>
> In my mind, the validity of the private key should not spread outside the
> validity period of the certificate.
>
> Have I misunderstood something?




 

-- 

Erwann.