Re: [pkix] RFC 5280 and example of a self signed end-entity certificate?

Peter Gutmann <pgut001@cs.auckland.ac.nz> Fri, 25 November 2016 08:06 UTC

Return-Path: <pgut001@cs.auckland.ac.nz>
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 5652712954B for <pkix@ietfa.amsl.com>; Fri, 25 Nov 2016 00:06:41 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.697
X-Spam-Level:
X-Spam-Status: No, score=-5.697 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-1.497] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=auckland.ac.nz
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 Jys3u8l6pqV2 for <pkix@ietfa.amsl.com>; Fri, 25 Nov 2016 00:06:39 -0800 (PST)
Received: from mx4.auckland.ac.nz (mx4.auckland.ac.nz [130.216.125.248]) (using TLSv1.2 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5AD7012A235 for <pkix@ietf.org>; Fri, 25 Nov 2016 00:06:38 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=auckland.ac.nz; i=@auckland.ac.nz; q=dns/txt; s=mail; t=1480061199; x=1511597199; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=WVyNch/EJStN2KN8Ssg/GCqPAzq0jOeh/Gb09bE+MMM=; b=tnMOyRaXPyyCNFNMrHaV7lMX7BDAHjwnPcOWBBRCIQm03+GDZ6tkZPz5 TD7Wey/241y/cznl1l5gaH0kRp0qwd8etRZf53U9LmJGuRa6+U7V8FQV+ fITOhZpKOc8fS3b+PSq3LoBgqYQdinJMt88CUZ0ky7Ykr7Jsm5w9d32aC Z/zr7PG85o8QH5MU4PuJwMDOXMwMhvUL5JvmGeUk98/dDgjRZ6EkzTtMC MHi7ocJzFd2uC18lSVA7djIBonbEK2RQwoyfY3O6YaxBgzEJ/vlOQZNU4 BH1reM5rvOJPFUQNMCy1ZdUa+Ir3UZcBHB1AhQprxlUJ++RLyHjR5P++u w==;
X-IronPort-AV: E=Sophos;i="5.31,546,1473076800"; d="scan'208";a="117066123"
X-Ironport-HAT: MAIL-SERVERS - $RELAYED
X-Ironport-Source: 10.6.2.4 - Outgoing - Outgoing
Received: from exchangemx.uoa.auckland.ac.nz (HELO uxcn13-ogg-c.UoA.auckland.ac.nz) ([10.6.2.4]) by mx4-int.auckland.ac.nz with ESMTP/TLS/AES256-SHA; 25 Nov 2016 21:06:36 +1300
Received: from uxcn13-ogg-d.UoA.auckland.ac.nz (10.6.2.5) by uxcn13-ogg-c.UoA.auckland.ac.nz (10.6.2.24) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Fri, 25 Nov 2016 21:06:36 +1300
Received: from uxcn13-ogg-d.UoA.auckland.ac.nz ([10.6.2.25]) by uxcn13-ogg-d.UoA.auckland.ac.nz ([10.6.2.25]) with mapi id 15.00.1178.000; Fri, 25 Nov 2016 21:06:36 +1300
From: Peter Gutmann <pgut001@cs.auckland.ac.nz>
To: Yoav Nir <ynir.ietf@gmail.com>, "noloader@gmail.com" <noloader@gmail.com>
Thread-Topic: [pkix] RFC 5280 and example of a self signed end-entity certificate?
Thread-Index: AQHSQqR0A12eDUvzT0eAejP9xc93V6DhcLN1//8pa4CAB1K/AIABczak
Date: Fri, 25 Nov 2016 08:06:36 +0000
Message-ID: <1480061185899.54666@cs.auckland.ac.nz>
References: <CAH8yC8m886wq8DOzLcyXgkqQW4vmYCzCdvS78PBtcifMJUEGXA@mail.gmail.com> <1479624960309.7436@cs.auckland.ac.nz> <7BE59266-C79D-42FD-A088-70531D6EB4D4@gmail.com>, <CAH8yC8nJSWmEVcbCzeWyO4wzF+jdGQ0Ljht4KnZZ39YoLSnfcQ@mail.gmail.com>
In-Reply-To: <CAH8yC8nJSWmEVcbCzeWyO4wzF+jdGQ0Ljht4KnZZ39YoLSnfcQ@mail.gmail.com>
Accept-Language: en-NZ, en-GB, en-US
Content-Language: en-NZ
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-ms-exchange-transport-fromentityheader: Hosted
x-originating-ip: [130.216.158.4]
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Archived-At: <https://mailarchive.ietf.org/arch/msg/pkix/Leb5e6zPW08V5lLHCFIGKkSnFzQ>
Cc: PKIX <pkix@ietf.org>
Subject: Re: [pkix] RFC 5280 and example of a self signed end-entity certificate?
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, 25 Nov 2016 08:06:41 -0000

Jeffrey Walton <noloader@gmail.com> writes:

>That creates a malformed server certificate because the hostname is placed in
>the CN and not the SAN, it uses SHA1 by default, and it fails to use UTF-8
>strings by default. At minimum, its not following best practices and using
>deprecated methods.

It depends on what you define as "malformed".  Everything puts the server name
in the DN, you don't need UTF-8 strings in most cases, and whether you use
SHA-1 in a self-signed EE cert is a matter of preference (it's not like
someone is going to have to break SHA-1 to create a fake cert)...

Peter.