Re: [pkix] Looking for some clarification on how to correctly specify rfc822Name constraint for an X.509 certificate
Erwann Abalea <eabalea@gmail.com> Fri, 22 August 2014 10:04 UTC
Return-Path: <eabalea@gmail.com>
X-Original-To: pkix@ietfa.amsl.com
Delivered-To: pkix@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id EB0D41A01F9 for <pkix@ietfa.amsl.com>; Fri, 22 Aug 2014 03:04:08 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.399
X-Spam-Level:
X-Spam-Status: No, score=-1.399 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, J_CHICKENPOX_74=0.6, SPF_PASS=-0.001] autolearn=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 Pe2oygErsGbG for <pkix@ietfa.amsl.com>; Fri, 22 Aug 2014 03:04:07 -0700 (PDT)
Received: from mail-vc0-x232.google.com (mail-vc0-x232.google.com [IPv6:2607:f8b0:400c:c03::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 252CD1A01E2 for <pkix@ietf.org>; Fri, 22 Aug 2014 03:04:07 -0700 (PDT)
Received: by mail-vc0-f178.google.com with SMTP id la4so12081602vcb.37 for <pkix@ietf.org>; Fri, 22 Aug 2014 03:04:06 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=+K1Ps5N5YEvLsyvBZOs5ghFdTqjv8EvjUrEHyboL72Q=; b=QxvYNv9aTE4hn6l5lmYfI0OmkP+dXlQ2NexwcYTUGuXVoDIDjDTNG8iPIyzJC7FYnB prHQqFuoErh2lpRbDUgzojgNTHwbheJzltDVvd1x0JdNna1QYroE0N2WaYXlgMYYzaKE qZBPSpYKEu1X99nNu1d8rdyBn/XB6tiDoFOcuBQb7gW1b4Eco1JtSph0J0xekOpvGT+J JvIVomvBwKxS/VVmBeXL8BSaOfd6W65JJHJbGwx7jsWGYLPB+wXGCpj/7NLB7XiiVLKY xT+2yiffciO6iuGfPPE4fih5kNjMid6Qu6yW98qZrFivB6ZVRGetQ7xdxjp2jWd9WrFq YKOQ==
MIME-Version: 1.0
X-Received: by 10.52.119.229 with SMTP id kx5mr80447vdb.40.1408701846292; Fri, 22 Aug 2014 03:04:06 -0700 (PDT)
Received: by 10.52.117.180 with HTTP; Fri, 22 Aug 2014 03:04:06 -0700 (PDT)
In-Reply-To: <53F6FA84.8090905@gmail.com>
References: <53F0A868.7050200@gmail.com> <53F6FA84.8090905@gmail.com>
Date: Fri, 22 Aug 2014 12:04:06 +0200
Message-ID: <CA+i=0E5tptc7ETcuK9xsWWj4gHbbDP3nWTHW++ZEvvGQNTEghA@mail.gmail.com>
From: Erwann Abalea <eabalea@gmail.com>
To: "martijn.list" <martijn.list@gmail.com>
Content-Type: multipart/alternative; boundary="047d7bdc99aa249136050134f5df"
Archived-At: http://mailarchive.ietf.org/arch/msg/pkix/VBUcL5soRJ2pxYGwjptAmrqBaU0
Cc: "<pkix@ietf.org>" <pkix@ietf.org>
Subject: Re: [pkix] Looking for some clarification on how to correctly specify rfc822Name constraint for an X.509 certificate
X-BeenThere: pkix@ietf.org
X-Mailman-Version: 2.1.15
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: <http://www.ietf.org/mail-archive/web/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, 22 Aug 2014 10:04:09 -0000
In my view, there's no confusion in RFC5280. "@" is not required/accepted in a rfc822Name element. The fact that Microsoft choses another format for otherName:UPN does not change the rfc822Name semantics (while validating against NameConstraints). 2014-08-22 10:08 GMT+02:00 martijn.list <martijn.list@gmail.com>: > Since I did not get any response, I guess my question was not clear or I > should ask somewhere else. Any idea where to ask for some clarification > on rfc822Name constraints (see below). > > Kind regards, > > Martijn Brinkers > > > On 08/17/2014 03:04 PM, martijn.list wrote: > > Recently we noticed that an end user S/MIME certificate was not > > validated by our encryption gateway. The certificate in question was > > issued by an intermediate certificate (which was again issued by a > > Quovadis root) that contained an rfc822Name constraint. The rfc822Name > > constraint was specified as follows: > > > > @example.com > > > > RFC 5280 specifies the format for rfc822Name constraints as follows: > > > > "A name constraint for Internet mail addresses MAY specify a > > particular mailbox, all addresses at a particular host, or all > > mailboxes in a domain. To indicate a particular mailbox, the > > constraint is the complete mail address. For example, > > "root@example.com" indicates the root mailbox on the host > > "example.com". To indicate all Internet mail addresses on a > > particular host, the constraint is specified as the host name. For > > example, the constraint "example.com" is satisfied by any mail > > address at the host "example.com". To specify any address within a > > domain, the constraint is specified with a leading period (as with > > URIs). For example, ".example.com" indicates all the Internet mail > > addresses in the domain "example.com", but not Internet mail > > addresses on the host "example.com"." > > > > (http://tools.ietf.org/html/rfc5280#section-4.2.1.10) > > > > So the way I read this is that a constraint for the domain example.com > > should be specified as > > > > example.com > > > > and not as > > > > @example.com > > > > This might explain why our Java based software refuses to validate the > > end user certificate since test@example.com does not match the > > @example.com constraint. Adding an @ symbol will also be problematic > > when using the .example.com domain constraint since that would then > > result in @.example.com. > > > > To confuse things even more, Microsoft seems to mix the two options. > > They use @example.com for constraining to the example.com domain but > > .example.com for matching sub domains: > > > > "UPN name constraints should always be entered as two separate entries > > in the list of name constraints. One entry should include the ampersand > > character (such as @nwtraders.com); the second entry should replace the > > ampersand with a period (.), so this entry would be .nwtraders.com. This > > format allows for the possibility of having a UPN of > > subdomain.nwtraders.msft." > > > >>From > http://technet.microsoft.com/en-us/library/cc737026%28v=ws.10%29.aspx > > > > Is there any consensus on what the correct format is according to RFC > 5280? > > > > Are there other implementations that use @example.com instead of > > example.com for rfc822Name constraints? > -- Erwann.
- [pkix] Looking for some clarification on how to c… martijn.list
- Re: [pkix] Looking for some clarification on how … martijn.list
- Re: [pkix] Looking for some clarification on how … Erwann Abalea
- Re: [pkix] Looking for some clarification on how … Tom Gindin