<?xml version='1.0' encoding='utf-8'?>
<rfc xmlns:xi="http://www.w3.org/2001/XInclude" category="info" docName="draft-hallambaker-jscontact-05" indexInclude="false" ipr="trust200902" scripts="Common,Latin" sortRefs="true" submissionType="independent" symRefs="true" tocDepth="3" tocInclude="true" version="3" xml:lang="en"><front>
<title abbrev="JSContact Cryptographic Key Extensions">JSContact Cryptographic Key Extensions</title>
<seriesInfo name="draft-hallambaker-jscontact-05" value="draft-hallambaker-jscontact" stream="independent"/>
<author fullname="Phillip Hallam-Baker" initials="P. M." surname="Hallam-Baker"><organization>ThresholdSecrets.com</organization>
<address>
<email>phill@hallambaker.com</email>
</address>
</author>
<date day="16" month="September" year="2025"/>
<area/>
<workgroup/>
<keyword>Identity</keyword>
<keyword>Cryptography</keyword>
<keyword>OAUTH</keyword>
<abstract>
<t>Extensions to the JSContact data model for contact card data are defined to provide improved support for describing cryptographic credentials to be used with applications and services and to provide support for authenticated updates to a contact card. These features in combination provide a basis for establishing and maintaining peer-to-peer trust.</t>
</abstract>
</front>
<middle>
<section title="Introduction" anchor="n-introduction"><t>This document defines extensions to the JSContact data model for contact card data <xref target="RFC9553"></xref> to provide improved support for describing cryptographic credentials to be used with applications and services and to provide support for authenticated updates to a contact card.</t>
<t>The key design considerations for these extensions are as follows:</t>
<ul>
<li>Maintain compatibility with the approach in the base specification. Avoiding unexpected behavior from legacy applications.</li>
<li>Allow cryptographic credentials to be specified as JSON Web Key Sets <xref target="RFC7517"></xref>.</li>
<li>Provide more descriptive information for use of cryptographic credentials, in particular specifying which key is to be used with which information service.</li>
<li>Allow specification of groups of related email addresses and information services.</li>
<li>Enable automated updates to the contact card data with cryptographic authentication.</li>
</ul>
<t>In addition, specific guidance is provided on specifying credentials for use with S/MIME, OpenPGP, SSH and Code Signing.</t>
<section title="Linking Keys to Services" anchor="n-linking-keys-to-services"><t>JSContact allows a card to specify online services and cryptographic keys but does not provide a means of specifying which key is to be used for which purpose. This is a particular problem with key formats used to support a wide range of applications, an OpenPGP key may be used to sign email or sign a repository commit.</t>
<t>The EmailAddress object and OnlineService object are extended to add a keys property which <bcp14>MAY</bcp14> be used to specify the key identifiers of the related keys.</t>
<t>For example, Alice has an email address entry that has keys for signing and encrypting emails using S/MIME and OpenPGP.</t>
<sourcecode>{
    "@type":"Card",
    ...
    "emails" : {
  "EmailAddress": {
    "@type": "EmailAddress",
    "address": "alice@example.com",
    "label": "Main email",
    "cryptoKeyIds": {
      "MCBV-AP74-6FWL-45K7-MRPV-XISQ-CARZ": "smime",
      "MBOH-BAER-57K4-MEFK-RTA3-K67Y-KA4F": "smime",
      "MCUK-IIT7-WXOW-DUJU-5LWP-SC4L-HHWT": "openpgp",
      "MCNS-D5JZ-PPCU-TQE5-R7Z4-KQHF-7FKK": "openpgp"}}},
    ...
    }</sourcecode>
</section>
<section title="Enhanced specification of cryptographic credentials" anchor="n-enhanced-specification-of-cryptographic-credentials"><t>The JSContact cryptokeys property allows a card to specify cryptographic credentials as URIs but not their intended uses. A data URI containing an X.509v3 certificate might be intended for use with S/MIME, for code signing or some entirely unrelated purpose. Best design practice encourages the use of common cryptographic infrastructures to support a wide range of applications but best use practices encourage limiting the use of particular cryptographic keys to a single application.</t>
<t>The use of the JSON Web Key (JWK) format provides a much richer format for describing cryptographic keys and their properties than a URI and a media type. </t>
<t>For example, Bob is trying to send an encrypted email to Alice, her contact card lists two keys but only one is an encryption key with the JWK <tt>use</tt> parameter <tt>enc</tt>:</t>
<t>[NB: This example is showing presentation as a JWK raw key alone, we would probably want to present the certificate as well, this has been left open so we can have a full discussion before fixing a scheme.]</t>
<sourcecode>{
    "@type":"Card",
    ...
    "cryptoKeys" : {"MCBV-AP74-6FWL-45K7-MRPV-XISQ-CARZ" : {
  "@type": "JsonWebKeySet",
  "jsonWebKeys": [{
      "kty": "RSA",
      "use": "any",
      "n": "wJ8fBfJvJErn6wQfaOxXSYJJ5nzjjmh6m2xxBgPeYhaB0UJu6moixZ0
h2C482143EDpQ7IA4BWGlp1qs1Q_eBjPqX3I9cD7BHSn6mNzyUG96s9hUvXQ79Q-5F
bJ-aVbaat7TUbmfAzQu3UW_DFMrHbLztnJvhN5cUyIpncS965Nhdo0tMk3LP6xNovQ
MI474KtZdwwTUd2YG8YNGhq8_NGYRtiuqvFVmtNERXg62OrkEyMo0M5wtKUe19O0b1
ANkXAgfclWO462u52O8mxjzL0yGgg_dsH5VKQ49DjIsElvEjQEv3Z22t-2zRmyUB--
xY7AAjlPpoliGK8fHNnauoQ",
      "e": "AQAB"}
    ]},
"MBOH-BAER-57K4-MEFK-RTA3-K67Y-KA4F" : {
  "@type": "JsonWebKeySet",
  "jsonWebKeys": [{
      "kty": "RSA",
      "use": "any",
      "n": "lh3QrtbxcyT3d4KaNrrrhs7zKU7wLa3uGuclPQ1m_bOBYNHc3ZJz6h-
9hztueRXWOU5qCOrUgnhm96CbZnduQk29kTIR_iLfAqi4N8ghLlefQuayfUjHnYeUR
VcdZBRPG88PRyw9DzZbeKKpq5_iiqjeAgaPqmhneym-qbpz5sn4wGT29M3X1uwbdTI
difc6u0ezDMEVIF1Bofva0gUa7EJQABXuvu-GXbDCQ2sYj4MI8O9kAE9GmXTc2WXVn
9ILznMLG78RRAt8C6ECZVYM4K28L-Uv0nR8g6hMcdD77fbpuooI73EKan4ofzWssRZ
MDV_U5SeqdvVI_g-Slep2jQ",
      "e": "AQAB"}
    ]}
...
}</sourcecode>
</section>
<section title="Groups" anchor="n-groups"><t>It is often convenient to organize related email addresses and online services used for a common purpose into groups.</t>
<t>For example, Alice might create separate sets of SSH, repository commit signing and code signing keys for code development:</t>
<sourcecode>{
    "@type":"Card",
    ...
    "groups" : {
  "ServiceGroup": {
    "@type": "ServiceGroup",
    "label": "Developer Key Set",
    "members": {
      "MDCO-377C-3R6S-X2SC-NHS6-BCQS-A623": true,
      "MBJ7-VZZO-NY6R-4BGH-YUBY-4ADY-UTDT": true,
      "MDZ7-XMQY-XHVJ-233R-P75B-2B4R-NFWU": true,
      "MBFR-6JKU-GO3E-JIUU-X2DW-NUCK-L4VY": true,
      "MAZ3-AMHL-GLHQ-HFNK-IWZ4-ZVAP-VDWD": true,
      "MB6M-HCTS-VO6W-UMIX-FW2R-4XGJ-J5V7": true,
      "MBIH-YWGE-7R6X-6QIS-77DR-NB4S-LPDC": true}}},
    ...
    }</sourcecode>
<t>Each group identifier is specified as an online service: </t>
<sourcecode>{
    "@type":"Card",
    ...
    "onlineServices" : {"MDCO-377C-3R6S-X2SC-NHS6-BCQS-A623" : {
  "@type": "OnlineService",
  "service": "ssh",
  "cryptoKeyIds": {
    "MBEX-N46R-AIUQ-FYT6-IEUK-MGV7-SRPQ": "ssh"}},
"MBJ7-VZZO-NY6R-4BGH-YUBY-4ADY-UTDT" : {
  "@type": "OnlineService",
  "service": "commit",
  "label": "commit",
  "cryptoKeyIds": {
    "MB4R-SUZM-6LM5-ZEAM-7WTO-ZUSP-TFWN": "credential"}},
"MDZ7-XMQY-XHVJ-233R-P75B-2B4R-NFWU" : {
  "@type": "OnlineService",
  "service": "code",
  "contexts": {
    "Pkix": true},
  "label": "code Pkix",
  "cryptoKeyIds": {
    "MA2Q-STSG-HL6V-VNUU-Z426-SCKT-WF5Z": "credential"}}
...
}</sourcecode>
</section>
<section title="Authenticated Locators" anchor="n-authenticated-locators"><t>The features described in this document are designed to support but not require the exchange of JSContact data by means of an Encrypted Authenticated Resource Locator (EARL) <xref target="draft-hallambaker-earl"></xref>. An EARL is a URI form that contains a multi-purpose key that <bcp14>MAY</bcp14> be used to locate, decrypt and authenticate an associated ciphertext package.</t>
<t>For example, Alice's JSContact information might be retrievable from the EARL:</t>
<sourcecode>jscontact://example.com/el4z-elnf-ojn7-ap7c-rarh-mvho-kaib</sourcecode>
<t>Alice might publish her EARL on her business card either as text or as a machine readable code such as a QR code. Alternatively, Alice might publish the information as a prefixed DNS TXT record in the domain she uses as her DNS handle:</t>
<sourcecode>_jscontact.alice.example.com TXT "jscontact=jscontact://example.com/e
    l4z-elnf-ojn7-ap7c-rarh-mvho-kaib"</sourcecode>
</section>
<section title="Authenticated Updates" anchor="n-authenticated-updates"><t>The authenticated locator mechanisms described above are intended to be used to establish a 'first contact' between the parties preserving the maximum possible degree of trust from the context.</t>
<t>Once the initial contact exchange has been achieved, the credentials exchanged in that first contact <bcp14>SHOULD</bcp14> be used to obtain and authenticate future updates.</t>
<t>Contact cards that support updates <bcp14>MUST</bcp14> include a UID property. Updates to contact cards <bcp14>MUST</bcp14> specify the same UID value.</t>
<t>The <tt>updates</tt> property provides an open framework for describing the update mechanisms supported. The mechanisms provided to update the contact <bcp14>MAY</bcp14> be different from the mechanism originally used to distribute it.</t>
<t>For example, Alice publishes her current contact card by means of a DNS TXT record containing an EARL and a QR code encoding the same EARL on the business card she presents when meeting people in person. Applications <bcp14>MAY</bcp14> update the card by polling the URI specified in the updates entry and verifying the signature on the plaintext enveloped data returned.</t>
<sourcecode>{
    "@type":"Card",
    ...
    "updates" : {
"update1" : {
  "@type": "Update",
  "uri": "https://contacts.example.com/NDNV-L6BK-GWRM-542G-YPQZ-UQG
P-MKQS",
  "keys": {
    "MDA4-2QRJ-OY5U-CTCN-TJCM-7ROT-3NC6": "sign"}}}
    ...
    "cryptoKeys" : {
"MDA4-2QRJ-OY5U-CTCN-TJCM-7ROT-3NC6" : {
  "@type": "JsonWebKeySet",
  "jsonWebKeys": [{
      "kty": "OKP",
      "kid": "MDA4-2QRJ-OY5U-CTCN-TJCM-7ROT-3NC6",
      "crv": "Ed448",
      "x": "aqKL0pKeDkY2Z1thiu5evlzwHraIUFVdJMkMp67dk9ujlV8x5WsvVEz
V9Ummn9tfoFV4jWF3nmuA"}
    ]}}
    ...
    }</sourcecode>
<t>Since it is easier to update information on a Web site than in DNS or on a business card, it is likely that some users will prefer to use these mechanisms to distribute pro-forma contact information consisting of basic contact information and update information alone. Therefore, contact applications <bcp14>SHOULD</bcp14> attempt to update contact cards providing update information on receipt.</t>
<t>Retrieving a plaintext signed contact assertion via HTTPS provides a simple but limited update mechanism providing end-to-end integrity but not confidentiality. While the contact information is delivered over an encrypted transport, the contact card is stored unencrypted on the server which may not be acceptable in certain applications. Another limitation is that the relying party is required to poll the contact service for updates. A more sophisticated updates protocol might provide update notifications. Such considerations are outside the scope of this document and left for future work.</t>
<t>[Remark: Addition of a JOSE based encryption scheme would be straightforward. This would require extension of the envelope specification and to pass a decryption key to the parties the contact is passed to.]</t>
<t>A contact card <bcp14>MAY</bcp14> specify multiple update mechanisms providing a degree of resilience in the case that a publication service stops providing service. </t>
<t>For example, Alice might choose three independent contact directory services publishing her contact information on all three ensuring that the people she has shared her contact information with can remain in contact years or even decades after the initial contact exchange.</t>
</section>
</section>
<section title="Definitions" anchor="n-definitions"><t>This section presents the related specifications and standards, the terms that are used as terms of art within the documents and the terms used as requirements language.</t>
<section title="Requirements Language" anchor="n-requirements-language"><t>The key words "<bcp14>MUST</bcp14>", "<bcp14>MUST NOT</bcp14>", "<bcp14>REQUIRED</bcp14>", "<bcp14>SHALL</bcp14>", "<bcp14>SHALL NOT</bcp14>", "<bcp14>SHOULD</bcp14>", "<bcp14>SHOULD NOT</bcp14>", "<bcp14>RECOMMENDED</bcp14>", "<bcp14>MAY</bcp14>", and "<bcp14>OPTIONAL</bcp14>" in this document are to be interpreted as described in RFC 2119 <xref target="RFC2119"></xref>.</t>
</section>
<section title="Defined Terms" anchor="n-defined-terms"><t>TBS</t>
</section>
<section title="Related Specifications" anchor="n-related-specifications"><dl>
<dt>JSContact: A JSON Representation of Contact Data <xref target="RFC9553"></xref>.</dt>
<dd>
<t>Describes the format used for contact data interchange.</t>
</dd>
<dt>JSON Web Key (JWK) <xref target="RFC7517"></xref>.</dt>
<dd>
<t>Describes publishing public keys in JSON format.</t>
</dd>
<dt>Encrypted Authenticated Resource Locator <xref target="draft-hallambaker-earl"></xref>.</dt>
<dd>
<t>Describes a URI form that provides means of retrieving, decrypting and authenticating an associated ciphertext.</t>
</dd>
</dl>
</section>
<section title="Implementation Status" anchor="n-implementation-status"><t>Reference code under the MIT Open-Source license has been developed to demonstrate all the features described in this document.</t>
</section>
</section>
<section title="Card Extensions" anchor="n-card-extensions"><t>The JSContact objects specified in <xref target="RFC9553"></xref> is extended as described in the following sections.</t>
<section title="Additional Card Properties" anchor="n--additional-card-properties-"><t>The following properties are added to the Card object specified in [RFC9553]. </t>
<section title="updates" anchor="n--updates-"><t>"updates": String[Update] (optional) Specifies mechanisms for obtaining updates to the card. </t>
<t>An Update object has all the properties of the Resource data type, with the following additional definitions: </t>
<t>"protocol": String (optional) The IANA update protocol identifier </t>
<t>"keys": String[String] (optional) The identifiers of the set of cryptographic keys to be used to  authenticate the updated contact information and their use. </t>
<sourcecode>"updates": {
  "update1": {
    "@type": "Update",
    "uri": "https://contacts.example.com/NDNV-L6BK-GWRM-542G-YPQZ-UQG
        P-MKQS",
    "keys": {
      "MDA4-2QRJ-OY5U-CTCN-TJCM-7ROT-3NC6": "sign"}}}</sourcecode>
</section>
<section title="serviceGroups" anchor="n--servicegroups-"><t>"serviceGroups": String[ServiceGroup] (optional) Specifies groups of related email addresses and online services. </t>
<t>A ServiceGroup object has all the properties of the Resource data type, with the following additional definition: </t>
<t>"members": String[Boolean] (optional) The identifiers of the service group members. The boolean value corresponding to each MUST be true. </t>
<sourcecode>"serviceGroups": {
  "NBUQ-JHKR-MLIE-4MOE-BSQV-EGNC-XNIH": {
    "@type": "ServiceGroup",
    "label": "Developer Key Set",
    "members": {
      "MDCO-377C-3R6S-X2SC-NHS6-BCQS-A623": true,
      "MBJ7-VZZO-NY6R-4BGH-YUBY-4ADY-UTDT": true,
      "MDZ7-XMQY-XHVJ-233R-P75B-2B4R-NFWU": true,
      "MBFR-6JKU-GO3E-JIUU-X2DW-NUCK-L4VY": true,
      "MAZ3-AMHL-GLHQ-HFNK-IWZ4-ZVAP-VDWD": true,
      "MB6M-HCTS-VO6W-UMIX-FW2R-4XGJ-J5V7": true,
      "MBIH-YWGE-7R6X-6QIS-77DR-NB4S-LPDC": true}}}</sourcecode>
</section>
</section>
<section title="Extended Objects" anchor="n--extended-objects-"><t>The following objects specified in [RFC9553] are extended to add the specified properties. </t>
<section title="EmailAddress" anchor="n--emailaddress-"><t>An EmailAddress object has the following properties. </t>
</section>
<section title="cryptoKeyIds" anchor="n--cryptokeyids-"><t>"cryptoKeyIds": String[String] (optional) The identifiers of the set of cryptographic keys to be used to  authenticate the updated contact information and their use. </t>
<sourcecode>"cryptoKeyIds": {
  "MCBV-AP74-6FWL-45K7-MRPV-XISQ-CARZ": "smime",
  "MBOH-BAER-57K4-MEFK-RTA3-K67Y-KA4F": "smime",
  "MCUK-IIT7-WXOW-DUJU-5LWP-SC4L-HHWT": "openpgp",
  "MCNS-D5JZ-PPCU-TQE5-R7Z4-KQHF-7FKK": "openpgp"}</sourcecode>
</section>
<section title="OnlineService" anchor="n--onlineservice-"><t>An OnlineService object has the following properties. </t>
</section>
<section title="cryptoKeyIds" anchor="n--cryptokeyids--0"><t>"cryptoKeyIds": String[String] (optional) The identifiers of the set of cryptographic keys to be used to  authenticate the updated contact information and their use. </t>
<sourcecode>"cryptoKeyIds": {
  "MCDT-ILSJ-UXCH-LQKG-2Z6F-3O7Q-SFFN": "ssh"}</sourcecode>
</section>
</section>
<section title="New Objects" anchor="n--new-objects-"><t>The following object is defined: </t>
<section title="JsonWebKeySet" anchor="n--jsonwebkeyset-"><t>A JsonWebKeySet object has all the properties of the CryptoKey data type, with the following additional definition: </t>
</section>
<section title="jsonWebKeys" anchor="n--jsonwebkeys-"><t>"jsonWebKeys": JWK[] (optional) A Json Web Key Set. </t>
<t>The JWK object is defined in [RFC7517]. </t>
<sourcecode>"jsonWebKeys": [{
    "kty": "RSA",
    "use": "any",
    "n": "xXs93LBkrGyNDumBvoUKE_NTW1kkEy7YnlnbzZxoIvGF4JjrRuR9pW87dHP
        u1xEU2cfrZ_o_g9IqDFheHC7NeCJG4Ngpdmwx2puYTeOT_M8eBCMqjPIItZNq
        7Dzt06LtJGekQpVr9tZXg-yA6yTbA6Lc8nd_qHSFzI5wu5Zq8WhI4HotlKcYn
        21w7m75pkV7veNmnaEtTB6PijjyaH_Gnx5_25T8U0vupHu01RobR4UmhLUc9G
        4VPqEP2Qm2T47D4CJ_dmcVRy4j510Tk1_ICEdevvvskNTM0WBNGWoguBC7_5x
        Ge_n-Y9kazjrornekcu2JH7UkfeRohpqmV61nfQ",
    "e": "AQAB"}]</sourcecode>
</section>
</section>
</section>
<section title="Application Profiles" anchor="n-application-profiles"><t>This section <em>will</em> provide guidance on how to encode cryptographic keys for specific applications. It is currently a placeholder so the relevant expert groups have an opportunity to advise the precise means by which the relevant information is presented.</t>
<section title="S/MIME" anchor="n-smime"><t>S/MIME (Secure/Multipurpose Internet Mail Extensions) provides a consistent way to send and receive secure MIME data over SMTP and other messaging transports.</t>
<t>Certificates issued for use with S/MIME are commonly used for other purposes, for example TLS client authentication. For the purposes of this discussion, our focus is strictly limited to the use of the certificate for messaging.</t>
<t>If the messaging protocol is SMTP, the service is specified as an EmailAddress, otherwise the OnlineService structure is used with the appropriate service specifier.</t>
<t>Strawman proposal:</t>
<ul>
<li>Use a single JWK entry with an x5c to specify the encryption key cert, signature key cert and cert path.</li>
<li>Specify the JWK in the keys section of the corresponding EmailAddress or OnlineService with the key identifier of the corresponding JWK and the 'smime' use.</li>
</ul>
<sourcecode>{
    "@type":"Card",
    ...
    "cryptoKeys" : {"MCBV-AP74-6FWL-45K7-MRPV-XISQ-CARZ" : {
  "@type": "JsonWebKeySet",
  "jsonWebKeys": [{
      "kty": "RSA",
      "use": "any",
      "n": "wJ8fBfJvJErn6wQfaOxXSYJJ5nzjjmh6m2xxBgPeYhaB0UJu6moixZ0
h2C482143EDpQ7IA4BWGlp1qs1Q_eBjPqX3I9cD7BHSn6mNzyUG96s9hUvXQ79Q-5F
bJ-aVbaat7TUbmfAzQu3UW_DFMrHbLztnJvhN5cUyIpncS965Nhdo0tMk3LP6xNovQ
MI474KtZdwwTUd2YG8YNGhq8_NGYRtiuqvFVmtNERXg62OrkEyMo0M5wtKUe19O0b1
ANkXAgfclWO462u52O8mxjzL0yGgg_dsH5VKQ49DjIsElvEjQEv3Z22t-2zRmyUB--
xY7AAjlPpoliGK8fHNnauoQ",
      "e": "AQAB"}
    ]},
"MBOH-BAER-57K4-MEFK-RTA3-K67Y-KA4F" : {
  "@type": "JsonWebKeySet",
  "jsonWebKeys": [{
      "kty": "RSA",
      "use": "any",
      "n": "lh3QrtbxcyT3d4KaNrrrhs7zKU7wLa3uGuclPQ1m_bOBYNHc3ZJz6h-
9hztueRXWOU5qCOrUgnhm96CbZnduQk29kTIR_iLfAqi4N8ghLlefQuayfUjHnYeUR
VcdZBRPG88PRyw9DzZbeKKpq5_iiqjeAgaPqmhneym-qbpz5sn4wGT29M3X1uwbdTI
difc6u0ezDMEVIF1Bofva0gUa7EJQABXuvu-GXbDCQ2sYj4MI8O9kAE9GmXTc2WXVn
9ILznMLG78RRAt8C6ECZVYM4K28L-Uv0nR8g6hMcdD77fbpuooI73EKan4ofzWssRZ
MDV_U5SeqdvVI_g-Slep2jQ",
      "e": "AQAB"}
    ]}
...
}</sourcecode>
</section>
<section title="OpenPGP" anchor="n-openpgp"><t>OpenPGP provides encryption with public key or symmetric cryptographic algorithms, digital signatures, compression, and key management.</t>
<t>OpenPGP key management is commonly used for many purposes including signing repository commits. For the purposes of this section, our focus is strictly limited to the use of keys for messaging.</t>
<t>If the messaging protocol is SMTP, the service is specified as an EmailAddress, otherwise the OnlineService structure is used with the appropriate service specifier.</t>
<t>Strawman proposal:</t>
<ul>
<li>User specifies their OpenPGP primary key as an OnlineService with service type 'openpgp'. This is also the place any key server information would be placed.</li>
<li>The first key in the keys entry of the service is the key identifier of the primary key</li>
<li>The sub keys are the following keys</li>
<li>The corresponding key entries are of type JsonWebKey</li>
<li>The key data is specified as a binary data property</li>
<li>Other services specify the subkeys that they use.</li>
</ul>
<sourcecode>{
    "@type":"Card",
    ...
    "cryptoKeys" : {"MCUK-IIT7-WXOW-DUJU-5LWP-SC4L-HHWT" : {
  "@type": "JsonWebKeySet",
  "jsonWebKeys": [{
      "kty": "RSA",
      "use": "any",
      "n": "uU7YmNP_cnvG7JlCpAopOzG4O5AMQA2BQy2K0FyGz2T_6xSulN4_kKn
1xiUirXE3apYbu-VxNaAarl-yjPCyPAqzaYXpfu63iVQwqRDubiGP4fsBd4wbbV6qP
pKJGaSocCih5b65jnxw_UvMz1UPqD7KBZYuSOlwha2-1_1B-skpYN4G6XdqoOLrBjB
SnNy-0aB5Mu3I-yy_7lZRbfm0UKjXANJlkv7SEvCc51OwyPYc8mQkjDHcGwbB98Ug-
71jwIVMCz9WTmf2FtdgRDaKNppyrZ6GUSn7M1xbW-OtkA8wID4Bxiqbz9v9CWr4xEv
Vt8MhoWARGY576rsg6o9h9Q",
      "e": "AQAB"}
    ]},
"MCNS-D5JZ-PPCU-TQE5-R7Z4-KQHF-7FKK" : {
  "@type": "JsonWebKeySet",
  "jsonWebKeys": [{
      "kty": "RSA",
      "use": "any",
      "n": "5FB6MlSnk-oqZt6v7UZv6W7H9UHIWytS-bmZzLneDrQhuspmpJbBmZC
1IeQvLFBC2J9dft9BmQsIlvfZD7z-WDFWRlsroSn5WMXT1S9ByescjYy7G9oapL0k8
SJFkcNdim5B301EVq1Zxk-G62921wMMD0wuubEIKjEwUypBD7cS6QkWCcLmV1v0WpR
LlBqdpl8CE8uI_CYynR7et49JctIQFLYYhzMUNPsVff6ki8Y4U6xEZEly_5MtL6EKD
ivyUoBoPafmurPrfAGJBYdQjcp1D7b5nBmy0ss934MXut17j8HiWQdUoAT7NfW68Td
tv23SIQsCu6pIRUbky4M2bQ",
      "e": "AQAB"}
    ]}
...
}</sourcecode>
</section>
<section title="SSH" anchor="n-ssh"><t>Although the SSH protocol does support certificates these are not currently widely used on the client side and it is not clear that the use case of a single user specifying multiple SSH client keys for use on multiple devices has been fully distinguished from the use case of a corporation certifying keys for multiple employees.</t>
<t>If the user only has a client single key for a given use, this can be specified as JWK public key parameters.</t>
<t>If the user is making use of client side SSH certificates to provision each device with separate SSH credentials, the contact card should specify the SSH certificate.</t>
<sourcecode>{
    "@type":"Card",
    ...
    "onlineServices" : {"MAQS-NB2W-KQNY-UP6J-KXB3-EQEE-JL6I" : {
  "@type": "OnlineService",
  "service": "ssh",
  "label": "Main SSH key",
  "cryptoKeyIds": {
    "MCDT-ILSJ-UXCH-LQKG-2Z6F-3O7Q-SFFN": "ssh"}},
"MDCO-377C-3R6S-X2SC-NHS6-BCQS-A623" : {
  "@type": "OnlineService",
  "service": "ssh",
  "cryptoKeyIds": {
    "MBEX-N46R-AIUQ-FYT6-IEUK-MGV7-SRPQ": "ssh"}}}

{
    "@type":"Card",
    ...
    "cryptoKeys" : {"MCDT-ILSJ-UXCH-LQKG-2Z6F-3O7Q-SFFN" : {
  "@type": "JsonWebKeySet",
  "jsonWebKeys": [{
      "kty": "RSA",
      "use": "any",
      "n": "xXs93LBkrGyNDumBvoUKE_NTW1kkEy7YnlnbzZxoIvGF4JjrRuR9pW8
7dHPu1xEU2cfrZ_o_g9IqDFheHC7NeCJG4Ngpdmwx2puYTeOT_M8eBCMqjPIItZNq7
Dzt06LtJGekQpVr9tZXg-yA6yTbA6Lc8nd_qHSFzI5wu5Zq8WhI4HotlKcYn21w7m7
5pkV7veNmnaEtTB6PijjyaH_Gnx5_25T8U0vupHu01RobR4UmhLUc9G4VPqEP2Qm2T
47D4CJ_dmcVRy4j510Tk1_ICEdevvvskNTM0WBNGWoguBC7_5xGe_n-Y9kazjrorne
kcu2JH7UkfeRohpqmV61nfQ",
      "e": "AQAB"}
    ]},
"MBEX-N46R-AIUQ-FYT6-IEUK-MGV7-SRPQ" : {
  "@type": "JsonWebKeySet",
  "jsonWebKeys": [{
      "kty": "RSA",
      "use": "any",
      "n": "2Wg7e1bAhTBYYh5SxJraa2GxMut3ZdpYrCaYxyQcQIl23_orqoBAF67
FaKB0rrk2OZuxeFFJv8hmtz4l6QroQ36uB53CsnUm-rr6MYR9YMnoXXC_rL_EM1fkV
-spbk81N9mbj_TllmtzX4zCNuvEIEFPdJwQZiz7o3gHelZm33u9ChM6UiW9vsGFgBs
1zF1JBpJ0SW2Yu8F2J5-uizFiuuhCj-XH-G2wWTHCJ89AMUi6ngqd0p1mBYFGRb1h8
aMOKYRkgWVr_82eZIPh1aeRGvZGw0p6Ieb5DhSQeE_L9_WYk3kzG2v0SIyLTgNjoPo
u5resE-H9cQSd2ofR6IUK9Q",
      "e": "AQAB"}
    ]}}</sourcecode>
</section>
<section title="Code Signing" anchor="n-code-signing"><t>Code signing typically makes use of PKIX certificates. While a single certificate could in practice be used for multiple platforms, each code signing program tends to have their own requirements and set of recognized CAs.</t>
<t>It is however useful for a user to specify their own personal hierarchy with a personal root for testing and development purposes. </t>
<t>A developer may have multiple code signing keys for the same platform. For example, separate signing keys for each development machine.</t>
<t>Some mechanism is required to allow development and production keys to be distinguished.</t>
<sourcecode>{
    "@type":"Card",
    ...
    "onlineServices" : {"MDZ7-XMQY-XHVJ-233R-P75B-2B4R-NFWU" : {
  "@type": "OnlineService",
  "service": "code",
  "contexts": {
    "Pkix": true},
  "label": "code Pkix",
  "cryptoKeyIds": {
    "MA2Q-STSG-HL6V-VNUU-Z426-SCKT-WF5Z": "credential"}},
"MBFR-6JKU-GO3E-JIUU-X2DW-NUCK-L4VY" : {
  "@type": "OnlineService",
  "service": "code",
  "contexts": {
    "Windows": true},
  "label": "code Windows",
  "cryptoKeyIds": {
    "MCFE-K7IZ-JRHA-AA6H-CJZF-SDFQ-LSH3": "credential"}},
"MAZ3-AMHL-GLHQ-HFNK-IWZ4-ZVAP-VDWD" : {
  "@type": "OnlineService",
  "service": "code",
  "contexts": {
    "Apple": true},
  "label": "code Apple",
  "cryptoKeyIds": {
    "MC2X-ZQSD-EOAR-WYN7-B7DN-SBD3-X44Y": "credential"}},
"MB6M-HCTS-VO6W-UMIX-FW2R-4XGJ-J5V7" : {
  "@type": "OnlineService",
  "service": "code",
  "contexts": {
    "Android": true},
  "label": "code Android",
  "cryptoKeyIds": {
    "MB5H-DVYY-57VQ-P4YH-7XTK-2GTL-URNG": "credential"}},
"MBIH-YWGE-7R6X-6QIS-77DR-NB4S-LPDC" : {
  "@type": "OnlineService",
  "service": "code",
  "contexts": {
    "Linux": true},
  "label": "code Linux",
  "cryptoKeyIds": {
    "MAT6-O4LN-KZ66-JK76-L4QG-WWER-F4JI": "credential"}}}

{
    "@type":"Card",
    ...
    "cryptoKeys" : {"MA2Q-STSG-HL6V-VNUU-Z426-SCKT-WF5Z" : {
  "@type": "JsonWebKeySet",
  "jsonWebKeys": [{
      "kty": "EC",
      "use": "any",
      "kid": "MA2Q-STSG-HL6V-VNUU-Z426-SCKT-WF5Z",
      "crv": "P-256",
      "x": "9zPl5LQW7yRBMRzk2FQJ5-F5G6kUa88BCdGKd36eK_Y",
      "y": "8uUirOWL7cF79nUY6tXmo34fx2lOVQq_P52JjckbspY"}
    ]},
"MCFE-K7IZ-JRHA-AA6H-CJZF-SDFQ-LSH3" : {
  "@type": "JsonWebKeySet",
  "jsonWebKeys": [{
      "kty": "EC",
      "use": "any",
      "kid": "MCFE-K7IZ-JRHA-AA6H-CJZF-SDFQ-LSH3",
      "crv": "P-256",
      "x": "sF3A0qaKYEa0Ak2Y0VbBM79XfJnumtlosElrksOsgyI",
      "y": "GiMDcmQT5DGtgW2XCCUhIPSarEvQE75BKDYMkDocSow"}
    ]},
"MC2X-ZQSD-EOAR-WYN7-B7DN-SBD3-X44Y" : {
  "@type": "JsonWebKeySet",
  "jsonWebKeys": [{
      "kty": "EC",
      "use": "any",
      "kid": "MC2X-ZQSD-EOAR-WYN7-B7DN-SBD3-X44Y",
      "crv": "P-256",
      "x": "ebUjncmK0LhAxHsosAlljF0ZvKix7LVn_50otvAhKDU",
      "y": "38vwap7VVaU9GQ6YPpE0vmqGa-wycQCW21hsRvi1t-E"}
    ]},
"MB5H-DVYY-57VQ-P4YH-7XTK-2GTL-URNG" : {
  "@type": "JsonWebKeySet",
  "jsonWebKeys": [{
      "kty": "EC",
      "use": "any",
      "kid": "MB5H-DVYY-57VQ-P4YH-7XTK-2GTL-URNG",
      "crv": "P-256",
      "x": "Y90738DH7MJiwTBRw-ApJLJ0yMfjL0gz263A5w8ddw4",
      "y": "dOk-a8RvtuE3cbJSmadKM1xHhemvHbQbTmde3KlJeKA"}
    ]},
"MAT6-O4LN-KZ66-JK76-L4QG-WWER-F4JI" : {
  "@type": "JsonWebKeySet",
  "jsonWebKeys": [{
      "kty": "EC",
      "use": "any",
      "kid": "MAT6-O4LN-KZ66-JK76-L4QG-WWER-F4JI",
      "crv": "P-256",
      "x": "Na8zkJNzYv_5SHxLwggsUj8iu3lRVISchN9_xuBX0y0",
      "y": "b9-7540dFagjgUg5qhB-Hnx3MTXVakieomOA4_MTNrI"}
    ]}}</sourcecode>
</section>
<section title="Commit Signing" anchor="n-commit-signing"><t>OpenPGP key management is commonly used for signing repository commits.</t>
<t>This use is specified by means of an OnlineService with the service type 'commit' with key entries for the set of authorized signing keys.</t>
<sourcecode>{
    "@type":"Card",
    ...
    "onlineServices" : {"MBJ7-VZZO-NY6R-4BGH-YUBY-4ADY-UTDT" : {
  "@type": "OnlineService",
  "service": "commit",
  "label": "commit",
  "cryptoKeyIds": {
    "MB4R-SUZM-6LM5-ZEAM-7WTO-ZUSP-TFWN": "credential"}}}

{
    "@type":"Card",
    ...
    "cryptoKeys" : {"MB4R-SUZM-6LM5-ZEAM-7WTO-ZUSP-TFWN" : {
  "@type": "JsonWebKeySet",
  "jsonWebKeys": [{
      "kty": "EC",
      "use": "any",
      "kid": "MB4R-SUZM-6LM5-ZEAM-7WTO-ZUSP-TFWN",
      "crv": "P-256",
      "x": "lzT1bFqzRTHXmRfQfAMTD5JRfeWNViYmaVXqo4WeNzo",
      "y": "uFgVeDUVmZDPfBc_533QWwCOzo11doqnMC4-_q6O6NQ"}
    ]}}</sourcecode>
</section>
</section>
<section title="IANA Considerations" anchor="n-iana-considerations"><t>This document does not specify any actions for IANA yet but it will...[TBS]</t>
</section>
<section title="Acknowledgements" anchor="n-acknowledgements"><t>Many thanks to Robert Stepanek who helped refine the approach to extending the schema.</t>
</section>
</middle>
<back>
<references title="Normative References"><reference anchor="RFC2119"><front>
<title>Key words for use in RFCs to Indicate Requirement Levels</title>
<author fullname="S. Bradner" initials="S." surname="Bradner"><address>
</address>
</author>
<date month="March" year="1997"/>
</front>
<seriesInfo name="BCP" value="14"/>
<seriesInfo name="RFC" value="2119"/>
<seriesInfo name="DOI" value="10.17487/RFC2119"/>
</reference>
<reference anchor="RFC9553"><front>
<title>JSContact: A JSON Representation of Contact Data</title>
<author fullname="R. Stepanek" initials="R." surname="Stepanek"><address>
</address>
</author>
<author fullname="M. Loffredo" initials="M." surname="Loffredo"><address>
</address>
</author>
<date month="May" year="2024"/>
</front>
<seriesInfo name="RFC" value="9553"/>
<seriesInfo name="DOI" value="10.17487/RFC9553"/>
</reference>
<reference anchor="RFC7517"><front>
<title>JSON Web Key (JWK)</title>
<author fullname="M. Jones" initials="M." surname="Jones"><address>
</address>
</author>
<date month="May" year="2015"/>
</front>
<seriesInfo name="RFC" value="7517"/>
<seriesInfo name="DOI" value="10.17487/RFC7517"/>
</reference>
<reference anchor="draft-hallambaker-earl"><front>
<title>Encrypted Authenticated Resource Locator</title>
<author fullname="Phillip Hallam-Baker" initials="P." surname="Hallam-Baker"><organization>ThresholdSecrets.com</organization>
<address>
</address>
</author>
<date day="10" month="April" year="2025"/>
</front>
<seriesInfo name="Internet-Draft" value="draft-hallambaker-earl-00"/>
</reference>
</references>
</back>
</rfc>
