[lamps] Re: Binding certificates to protocols/applications

刘鹏辉 <liupenghui1982@163.com> Thu, 11 June 2026 09:34 UTC

Return-Path: <liupenghui1982@163.com>
X-Original-To: spasm@mail2.ietf.org
Delivered-To: spasm@mail2.ietf.org
Received: from localhost (localhost [127.0.0.1]) by mail2.ietf.org (Postfix) with ESMTP id CDFCCFF3E402 for <spasm@mail2.ietf.org>; Thu, 11 Jun 2026 02:34:23 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ietf.org; s=ietf1; t=1781170463; bh=0QM55zs+Fj10PpEYIbhcRsFE7tIepM5Y9yUD8TOzuAc=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=ZcHYEmQWQeVdSaCjCPCcT152GXyC8tX3WRD54ae7kbk4ChNjPozgbINhcvn5YD/GS I2uC8Ustk0Syl6O20cpbPGdHpJDCvGvOqRf2det/9KKIzon51Hft/kV5hWgyLfxC2+ HrseQaYXmn2xr/QXYumKkstpEJiRHG8QFOeuLABA=
X-Virus-Scanned: amavisd-new at ietf.org
X-Spam-Flag: NO
X-Spam-Score: -1.844
X-Spam-Level:
X-Spam-Status: No, score=-1.844 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: mail2.ietf.org (amavisd-new); dkim=pass (1024-bit key) header.d=163.com
Received: from mail2.ietf.org ([166.84.6.31]) by localhost (mail2.ietf.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6Bl5qf-6M--3 for <spasm@mail2.ietf.org>; Thu, 11 Jun 2026 02:34:22 -0700 (PDT)
Received: from m16.mail.163.com (m16.mail.163.com [117.135.210.5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail2.ietf.org (Postfix) with ESMTPS id D9C28FF3E3F8 for <spasm@ietf.org>; Thu, 11 Jun 2026 02:34:21 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Date:From:To:Subject:Content-Type:MIME-Version: Message-ID; bh=0QM55zs+Fj10PpEYIbhcRsFE7tIepM5Y9yUD8TOzuAc=; b=Z DwSGIimUbrkLlzDX5TJlmmLVftfUIhm8PKzTODy7cMgi/15tdZTE53NuzF6Jb2cS phX5SWbsrFDKnDFRX+7me45aDSGXf5u0Bdhj8I/T2T8XUrmnTCpit7vYkGm6EiSc ZlfqeHJhbxM9Z4uBu6PX4IAl39HFHBtKEd5SlwJyGs=
Received: from liupenghui1982$163.com ( [120.237.18.57] ) by ajax-webmail-wmsvr-40-147 (Coremail) ; Thu, 11 Jun 2026 17:33:59 +0800 (CST)
X-Originating-IP: [120.237.18.57]
Date: Thu, 11 Jun 2026 17:33:59 +0800
From: 刘鹏辉 <liupenghui1982@163.com>
To: "Brockhaus, Hendrik" <hendrik.brockhaus=40siemens.com@dmarc.ietf.org>
X-Priority: 3
X-Mailer: Coremail Webmail Server Version 2023.4-cmXT build 20260403(27802f6d) Copyright (c) 2002-2026 www.mailtech.cn 163com
In-Reply-To: <PAXPR10MB48982F187630C0A35646913FFE1B2@PAXPR10MB4898.EURPRD10.PROD.OUTLOOK.COM>
References: <DU0PR10MB9326CA988D2D53F3DA394BCAF31A2@DU0PR10MB9326.EURPRD10.PROD.OUTLOOK.COM> <34de9898-bf4b-4294-b9fa-8fdc5ac3acee@nthpermutation.com> <7fc7160d-45b3-469f-b23c-6ac1ee95c8ce@lear.ch> <DU0PR03MB86969F21DF3660B97DCE33FF861A2@DU0PR03MB8696.eurprd03.prod.outlook.com> <PAXPR10MB48982F187630C0A35646913FFE1B2@PAXPR10MB4898.EURPRD10.PROD.OUTLOOK.COM>
X-NTES-SC: AL_Qu2TA/2cv0wo7yGaY+kcnkwWhOg9Xsayuv0v249fc+8GsT3t9yIEUEJJAFDLwsOrKAWAlwGwfSJPxstfbJhCPPyfVkTzb2mUXq2YE99lCg==
Content-Type: multipart/alternative; boundary="----=_Part_129795_760032044.1781170439135"
MIME-Version: 1.0
Message-ID: <6e6c0cb5.85f6.19eb60803df.Coremail.liupenghui1982@163.com>
X-Coremail-Locale: zh_CN
X-CM-TRANSID: kygvCgD33+gHgSpqkIAHAA--.7287W
X-CM-SenderInfo: xolx1v5qjk3xarzyjqqrwthudrp/xtbCxQeGTWoqgQeEfAAA33
X-Coremail-Antispam: 1U5529EdanIXcx71UUUUU7vcSsGvfC2KfnxnUU==
Message-ID-Hash: RWSQ34KEE4NWL5E5MJ5N5GVG4CPKQVBO
X-Message-ID-Hash: RWSQ34KEE4NWL5E5MJ5N5GVG4CPKQVBO
X-MailFrom: liupenghui1982@163.com
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-spasm.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: "spasm@ietf.org" <spasm@ietf.org>
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [lamps] Re: Binding certificates to protocols/applications
List-Id: This is the mail list for the LAMPS Working Group <spasm.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/spasm/2nGBw-lb1lKBOVwbUGNRBXjljds>
List-Archive: <https://mailarchive.ietf.org/arch/browse/spasm>
List-Help: <mailto:spasm-request@ietf.org?subject=help>
List-Owner: <mailto:spasm-owner@ietf.org>
List-Post: <mailto:spasm@ietf.org>
List-Subscribe: <mailto:spasm-join@ietf.org>
List-Unsubscribe: <mailto:spasm-leave@ietf.org>




I think it's better to identify certificatate for different protocols with OID, just like DV, EV, OV certificates in WEB PKI.


Penghui liu







At 2026-06-11 14:02:26, "Brockhaus, Hendrik" <hendrik.brockhaus=40siemens.com@dmarc.ietf.org> wrote:

In an OT environment, the entity that holds keys and certificates is often a device, even if the device holds multiple certificates to be used with different protocols. As Steffen wrote, the point is that the SW on a device must be able to reliably identify the certificate that is to be used for authentication in a certain protocol.

According to RFC 5280, the subject name is the combination of subjectDN and SAN.

I am unsure how the binding of a certificate to a protocol can best be realized. Is it rather that the subject name should denote the protocol on a device, or that the subject name should only denote the device and a purpose OID should denote the protocol.

If I compare the proof-of-identity of the requester of a certificate with the subject name in the CSR during certificate management, e.g. using EST, it is helpful if both certificates contain the same subject name. Here it would be helpful if the protocol is not encoded in the SAN.

 

Hendrik

 

Von: Tomas Gustavsson <Tomas.Gustavsson=40keyfactor.com@dmarc.ietf.org>
Gesendet: Mittwoch, 10. Juni 2026 22:00
An: Eliot Lear <lear@lear.ch>; Michael StJohns <msj@nthpermutation.com>; spasm@ietf.org
Betreff: [lamps] Re: Binding certificates to protocols/applications

 

| |

Sie erhalten nicht häufig E-Mails von tomas.gustavsson=40keyfactor.com@dmarc.ietf.org. Erfahren Sie, warum dies wichtig ist

| |

I recommend against creating a custom SubjectAltName.OtherName. It requires creating a proper ASN.1 definitions and will be hard for most people both to issue and parse so make use of such certificates. If you don't think a standard altName works, there are plenty of OtherNames defined already that might be useful, some examples being Service Name, Hardware Module Name (already mentioned), Permanent Identifier, Registered Identifier, Subject Identifiiation Method, etc etc. OtherName is one of these slush buckets where people creates new names for the same concepts that have already been defined multiple times.

 

Tomas

 

From: Eliot Lear <lear@lear.ch>
Sent: Wednesday, June 10, 2026 9:50 PM
To: Michael StJohns <msj@nthpermutation.com>; spasm@ietf.org <spasm@ietf.org>
Subject: [lamps] Re: Binding certificates to protocols/applications

 

I agree with Mike on these points.  You also lose some mnemonic translation in some of the standard tool sets when you run with new EKUs.  Heck, I couldn't get the Golang to check in a new EKU table entry, and it was only a table entry.

Eliot

On 10.06.2026 19:51, Michael StJohns wrote:

Hi Steffen - 

 

Are you looking at this for the client certificates, for the server certificates or both?  E.g. do you expect both ends to check and enforce legitimate purposes?

 

What is your certificate issuing environment?  Something like the classical public CA model - or something with dedicated private CAs and a constrained/limited issuing regime? Something else?

 

What are the policy models for the issuing CAs for both the client and server?  E.g. How deep is the chain?  Are there individual CAs for each protocol or does a single CA issue for all protocols?  If multiple CAs, do you expect to be able to technically (vs policy) enforce the restriction of a CA to [a] specific protocol[s]?

 

Name based enforcement (as suggested elsewhere) is generally going to fail somewhere along the way -(cf PEM and name subordination).  Names mainly provide a handy place to stuff an easily referenced handle for the certificate (e.g. see HardwareName as an OtherName).  KeyUsage, EKUs and CertificatePolicy (https://datatracker.ietf.org/doc/html/rfc5280#section-4.2.1.4) extensions tend to be the appropriate approaches for certificate and key usage enforcement.

 

Mike

 

On 6/10/2026 12:50, Fries, Steffen wrote:

Dear all,

 

I have a question stemming from IEC standardization for the power system industry. But I think the question may be generally applicable.

 

The intention is to utilize dedicated certificates in the context of selected protocols.  With that an end device, e.g., a protection device, may use dedicated certificates to secure IEC 61850 by TLS, or RADIUS protected with TLS, or syslog when used over TLS. The device would have to manage these certificates and the question is if and how ideally the certificate indicates it may only be used in a dedicated setup.

 

There are different approaches possible for that certificate – protocol/application binding

ensure engineering realizes the correct association of protocol and certificate, but this would not allow the relying party to verify the certificate was used for the right purpose.
encode the purpose (target protocol to be protected) in the CN or the SAN, but this may lead to errors, if different vendors use different naming.
restrict the usage of the certificate via EKU to a specific protocol in a similar fashion as RFC 9809. This would require that protocols can be identified by an OID. While this approach seems favorable to me, I’m not aware of a protocol registry, which provides OID for protocols or applications. This may be done via private OIDs, but then, there is the danger that for certain protocols private OIDs are defined multiple times, which may lead to problems as the device may operate in different environments and would need to know the possible variations of the OID pointing to the same protocol.

 

Hence the question if there is some best practice regarding the use of dedicated certificates on the same device with different protocols/applications?

 

Best regards

Steffen

 

--
Steffen Fries
Siemens AG

 





_______________________________________________
Spasm mailing list -- spasm@ietf.org
To unsubscribe send an email to spasm-leave@ietf.org

 





_______________________________________________
Spasm mailing list -- spasm@ietf.org
To unsubscribe send an email to spasm-leave@ietf.org