Re: [OAUTH-WG] Fwd: New Version Notification for draft-campbell-oauth-tls-client-auth-00.txt

Jim Manico <> Thu, 03 November 2016 14:38 UTC

Return-Path: <>
Received: from localhost (localhost []) by (Postfix) with ESMTP id 40C2D129A80 for <>; Thu, 3 Nov 2016 07:38:11 -0700 (PDT)
X-Virus-Scanned: amavisd-new at
X-Spam-Flag: NO
X-Spam-Score: -2.598
X-Spam-Status: No, score=-2.598 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, MIME_QP_LONG_LINE=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=unavailable autolearn_force=no
Authentication-Results: (amavisd-new); dkim=pass (2048-bit key)
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id ufJQQ3AilZI6 for <>; Thu, 3 Nov 2016 07:38:10 -0700 (PDT)
Received: from ( [IPv6:2607:f8b0:400d:c09::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by (Postfix) with ESMTPS id 665A9129A78 for <>; Thu, 3 Nov 2016 07:31:44 -0700 (PDT)
Received: by with SMTP id o68so58899556qkf.3 for <>; Thu, 03 Nov 2016 07:31:43 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=YDBkHLSa1Bn+UuxKtsYljy2QDadYWz3oXQOFLVvJwRE=; b=KAPPg2GqLQ5Otp2GVUeVdpkD62QrshZJgG9f2dulnCyX5RaAkxOWeBRChLHgU5LBVq smtLIZg8McDjvDIk8wTkU2QXeFixF13lBbOIUcZlmnWdZP4QZ0doNfQkXmhyaFV734uc 6VfOm1bN/K+f017QTNMcLkK1csP4rtjktTRTHHtRRgHqev0T4zN6Uuy5iC+Lh2N+urKp eNYIaCWnOMw4VQ3aB6sqB/YNH2SdLZolfQvka+HJjnZzlbdZ5tZRxMCB7+ICFFl28J8K rhwanjG5lqocyprNISXQAWFhhzLsEdHe32fAIKrj8gVntknap0s50E3ENiD7O7ahfFHI i6DA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=20130820; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=YDBkHLSa1Bn+UuxKtsYljy2QDadYWz3oXQOFLVvJwRE=; b=MIBsVVdj6JgLLTUknoxHcuJXY+zYck9zgNGL1fpVN5hfVN6uPI4S9ObnWMxLlvybDM +xymi9ZlCi1Xrp9rZ3lyZ4oT1i2tVRjDWDmwlLTHL5MdUaIcFnmYreVZWtdaGUrEAYpy lP+RLHUOuQ9Fb+FihV3lc50uugk33dtFl0Uy+CXx5IJxF0FL7L0RxHQU+DBX/KKAj8tn 4oTtarkFoIuLr/oWY1ptW2+TbdI866uFheB0o9zPGdzzg9vKTR3brUlytIaZ4DPvC1YC 3P5BNn+9HGe1TwVjgB2crMFJDH6em9nCm17XxF9dED6dd6rq6+Htvy3vENcqMa9j0465 IhUw==
X-Gm-Message-State: ABUngvevBPFj0sMdolsiRxebeMOYP65dmnoKP2l7yInh0/5gOfKLsOLGoqm4W7QlXfoPXhIV
X-Received: by with SMTP id l3mr7939731qkd.128.1478183503137; Thu, 03 Nov 2016 07:31:43 -0700 (PDT)
Received: from [] ( []) by with ESMTPSA id w12sm4554021qka.4.2016. (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 Nov 2016 07:31:42 -0700 (PDT)
Content-Type: multipart/alternative; boundary="Apple-Mail-214CADEC-1C0A-468B-956C-B8F85EF07B26"
Mime-Version: 1.0 (1.0)
From: Jim Manico <>
X-Mailer: iPhone Mail (14B100)
In-Reply-To: <>
Date: Thu, 03 Nov 2016 10:31:39 -0400
Content-Transfer-Encoding: 7bit
Message-Id: <>
References: <> <> <> <> <> <> <> <> <> <> <> <>
To: Justin Richer <>
Archived-At: <>
Cc: Nat Sakimura via Openid-specs-fapi <>, OAuth WG <>
Subject: Re: [OAUTH-WG] Fwd: New Version Notification for draft-campbell-oauth-tls-client-auth-00.txt
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: OAUTH WG <>
List-Unsubscribe: <>, <>
List-Archive: <>
List-Post: <>
List-Help: <>
List-Subscribe: <>, <>
X-List-Received-Date: Thu, 03 Nov 2016 14:38:11 -0000

Thanks Justin. I use several security intel services and they all have different cert delivery mechanisms for mutual TLS. It's •rare• for services to let clients choose certs, they are usually assigned to users by each service from my experience.

Jim Manico
Secure Coding Education
+1 (808) 652-3805

> On Nov 3, 2016, at 8:51 AM, Justin Richer <> wrote:
> Yes, I elided the certificate issuance process. The point remains the same: you're not going to be submitting a CSR to the same party you're getting your client_id from, usually. If the draft assumes that, then it's incredibly limiting.
> Do people really use separate TLS client certs for separate connections in the wild? I've personally never seen that. What I've seen is that a piece of software gets its certificate that it uses to make whatever connections it needs to make.
>  -- Justin
>> On 11/3/2016 8:48 AM, Jim Manico wrote:
>> Just to be clear, the relationship should more like...
>> AS issues public key to clients, or client sends public key to AS. The authorities job is NOT to give the client the public key, but to sign the public key for authenticity. It's bad practice to accept the full cert (pub key+signature) from an authority. If an authority is creating your public key, they are also creating your private key.... bad.
>> > The client will use the same cert across multiple connections, possibly multiple AS's, but the same isn't true of the client_id. 
>> This seems like a bad idea. I suggest a separate key/signature for each service.
>> --
>> Jim Manico
>> @Manicode
>> Secure Coding Education
>> +1 (808) 652-3805
>> On Nov 3, 2016, at 8:41 AM, Justin Richer <> wrote:
>>> I agree that the client_id is unlikely to be found inside the certificate itself. The client_id is issued by the authorization server for the client to use at that single AS. The certificate is issued by the CA for the client to use on any connection. The AS and CA are not likely to be the same system in most deployments. The client will use the same cert across multiple connections, possibly multiple AS's, but the same isn't true of the client_id. 
>>> Additionally, I think we want to allow for a binding of a self-signed certificate using dynamic registration, much the way that we already allow binding of a client-generated JWK today. 
>>> I do think that more examples and guidance are warranted, though, to help AS developers.
>>>  -- Justin
>>>> On 11/2/2016 5:03 PM, Brian Campbell wrote:
>>>>> On Sun, Oct 30, 2016 at 9:27 AM, Samuel Erdtman <> wrote:
>>>>> I agree it is written so that the connection to the certificate is implicitly required but I think it would be better if it was explicit written since the lack of a connection would result in a potential security hole.
>>>> That's fair. I agree it can be made more explicit and that it be good to do so. 
>>>>> When it comes to the client_id I think subject common name or maybe subject serial numbers will be the common location, and I think an example would be valuable.
>>>> In my experience and the way we built support for mutual TLS OAuth client auth the client_id value does not appear in the certificate anywhere. I'm not saying it can't happen but don't think it's particularly common. 
>>>> I can look at adding some examples, if there's some consensus that they'd be useful and this document moves forward. 
>>>>> I´m not saying it is a bad Idea just that I would prefer if it was not a MUST. 
>>>>> With very limited addition of code it is just as easy to get the certificate attribute for client id as it is to get it from the HTTP request data (at least in java). I also think that with the requirement to match the incoming certificate in some way one has to read out the certificate that was used to establish the connection to do some kind of matching.
>>>> Getting data out of the certificate isn't a concern. I just believe that the constancy of having the client id parameter is worth the potential small amount duplicate data in some cases. It's just a -00 draft though and if the WG wants to proceed with this document, we seek further input and work towards some consensus. 
>>>> _______________________________________________
>>>> OAuth mailing list
>>> _______________________________________________
>>> OAuth mailing list