JSF
 
JSON Signature Format
Table of Contents
1. Introduction
2. Sample Object
3. Notation
4. Data Types
5. JSF Objects
Top Level Property
signaturecore
Global Signature Options
multisignature
signaturechain
publicKey
6. Signature Validation
7. Signature Creation
8. Multiple Signatures
9. Signature Chains
10. Security Considerations
Appendix A: Test Vectors
Appendix B: ECMAScript Mode
Appendix C: Counter Signatures
Appendix D: Usage in Applications
Appendix E: Acknowledgements
Appendix F: References
Appendix G: Document History
Appendix H: Author
1. Introduction
JSF is a scheme for signing data expressed as JSON [RFC8259] objects, loosely modeled after XML DSig's [XMLDSIG] "enveloped" signatures. Note that JSF requires that the JSON data to be signed is compatible with the I-JSON [RFC7493] profile.
Unlike JSON Web Signature (JWS) [RFC7515] which was designed for signing any kind of data, a JSF signature is intended to be an integral part of a JSON object with message centric systems like Yasmin [YASMIN] as the primary target. This concept was not originally considered due to the lack of a standardized canonicalization method for JSON data. However, with the introduction of the JSON Canonicalization Scheme [RFC8785] both data and header information could be provided in plain text while still being subject to cryptographic operations.
In order to make library support of JSF straightforward in spite of having a different structure compared to JWS, JSF uses the same JWA [RFC7518] and RFC8037 [RFC8037] signature algorithms.
JSF may also be used for "in-object" JavaScript signatures, making JSF suitable for HTML5 applications. See ECMAScript Mode.
There is also a "companion" specification for encryption coined JEF [JEF].
2. Sample Object
The following cryptographically verifiable sample signature is used to visualize the JSF specification:
{
  "now": "2019-02-10T11:23:06Z",
  "name": "Joe",
  "id": 2200063,
  "signature": {
    "algorithm": "ES256",
    "publicKey": {
      "kty": "EC",
      "crv": "P-256",
      "x": "6BKxpty8cI-exDzCkh-goU6dXq3MbcY0cd1LaAxiNrU",
      "y": "mCbcvUzm44j3Lt2b5BPyQloQ91tf2D2V-gzeUxWaUdg"
    },
    "value": "ybT1qz5zHNi4Ndc6y7Zhamuf51IqXkPkZwjH1XcC-KSuBiaQplTw6Jasf2MbCLg3CF7PAdnMO__WSLwvI5r2jA"
  }
}
The sample signature's payload consists of the properties above the "signature" property. Note: JSF does not mandate any specific ordering of properties like in the sample.
For more examples see Test Vectors.
The scope of a signature (what is actually signed) comprises all properties including possible child objects of the JSON object holding the "value" property except for the "value" property itself (shaded area in the sample).
3. Notation
JSF consists of an arbitrary but unique top level property (see p256#es256@name-jwk.json) holding a composite JSON object (signaturecore, multisignature or signaturechain).
JSON objects are described as tables with associated properties. When a property holds a JSON object this is denoted by a link to the actual definition.
Properties may either be mandatory (M) or optional (O) as defined in the "Req" column.
Array properties are identified by [ ] x-y where the range expression represents the valid number of array elements.
In some JSON objects there is a choice from a set of mutually exclusive alternatives.
This is manifested in object tables like the following:
Property selection 1Type selection 1ReqComment selection 1
Property selection 2Type selection 2Comment selection 2
4. Data Types
The table below shows how the data types used by this specification are mapped into native JSON types:
TypeMappingDescription
stringstringArbitrary string
byte[]stringBase64URL-encoded [RFC4648] binary data
cryptostringBase64URL-encoded positive integer with arbitrary precision. Note that the value must not contain leading zero-valued bytes
object{}JSON object
Note that "Type" refers to the element type for arrays.
5. JSF Objects
The following tables describe the JSF JSON structures in detail.
Top Level Property
PropertyTypeReqComment
"...": signaturecoreobjectMUnique top level property for simple signatures.
"...": multisignatureobjectUnique top level property for Multiple Signatures
"...": signaturechainobjectUnique top level property for Signature Chains
signaturecore
PropertyTypeReqComment
"algorithm": "Algorithm"stringMSignature algorithm. The currently recognized JWA [RFC7518] and RFC8037 [RFC8037] asymmetric key algorithms include:
  • RS256
  • RS384
  • RS512
  • PS256
  • PS384
  • PS512
  • ES256
  • ES384
  • ES512
  • Ed25519
  • Ed448
Note: Unlike RFC8037 [RFC8037] JSF requires explicit Ed* algorithm names instead of "EdDSA".
The currently recognized JWA [RFC7518] symmetric key algorithms include:
  • HS256
  • HS384
  • HS512
Note: If proprietary signature algorithms are added, they must be expressed as URIs.
JWS counterpart: "alg".
"keyId": "Identifier"stringOOptional. Application specific string identifying the signature key.
JWS counterpart: "kid".
"publicKey": publicKeyobjectOOptional. Public key object.
JWS counterpart: "jwk".
"certificatePath": ["Certificate Path"] 1-nbyte[]Optional. Sorted array of X.509 [RFC5280] certificates, where the first element must contain the signature certificate. The certificate path must be contiguous but is not required to be complete.
JWS counterpart: "x5c".
"value": "Signature"byte[]MThe signature data. Note that the binary representation must follow the JWA [RFC7518] specifications.
Note that asymmetric key signatures are not required providing an associated "publicKey" or "certificatePath" property since the key may be given by the context or through the "keyId" property.
Global Signature Options
PropertyTypeReqComment
"extensions": ["Property List"] 1-nstringOOptional. Array holding the names of one or more application specific extension properties also featured within the signaturecore signature object.
Extension names must not be duplicated or use any of the JSF reserved words "algorithm", "certificatePath", "chain", "extensions", "excludes", "keyId", "publicKey", "signers" or "value".
Extensions intended for public consumption are preferably expressed as URIs (unless registered with IANA), while private schemes are free using any valid property name.
A conforming JSF implementation must support optional extensions values, as well as an option to only accept predefined extension property names.
See also the p256#es256@exts-jwk.json and p256#es256,r2048#rs256@mult-exts-kid.json test vectors.
JWS counterpart: "crit".
"excludes": ["Property List"] 1-nstringOOptional. Array holding the names of one or more application level properties that must be excluded from the signature process.
Note that the "excludes" property itself, must also be excluded from the signature process.
Since both the "excludes" property and the associated data it points to are unsigned, a conforming JSF implementation must provide options for specifying which properties to accept.
See also the p256#es256@excl-jwk.json and p256#es256,r2048#rs256@mult-excl-kid.json test vectors.
Note that these options must only be specified at the top level of a JSF signature object.
multisignature
PropertyTypeReqComment
"signers": [signaturecore] 1-nobjectMArray holding Multiple Signatures
signaturechain
PropertyTypeReqComment
"chain": [signaturecore] 1-nobjectMArray holding Signature Chains
publicKey
PropertyTypeReqComment
"kty": "Key Type"stringMKey type indicator. Currently the following types are recognized:
Additional EC Properties
"crv": "Curve Name"stringMEC curve name. The currently recognized EC curves include:
  • P-256
  • P-384
  • P-521
Note: If proprietary curve names are added, they must be expressed as URIs.
"x": "Coordinate"byte[]MEC curve point X. The length of this field must be the full size of a coordinate for the curve specified in the "crv" parameter. For example, if the value of "crv" is "P-521", the decoded argument must be 66 bytes.
"y": "Coordinate"byte[]MEC curve point Y. The length of this field must be the full size of a coordinate for the curve specified in the "crv" parameter. For example, if the value of "crv" is "P-256", the decoded argument must be 32 bytes.
Additional OKP Properties
"crv": "Curve Name"stringMEdDSA curve name. The currently recognized EdDSA curves include:
  • Ed25519
  • Ed448
Note: If proprietary curve names are added, they must be expressed as URIs.
"x": "Coordinate"byte[]MEdDSA curve point X. The length of this field must be the full size of a coordinate for the curve specified in the "crv" parameter. For example, if the value of "crv" is "Ed25519", the decoded argument must be 32 bytes.
Additional RSA Properties
"n": "Modulus"cryptoMRSA modulus. See also the crypto data type.
"e": "Exponent"cryptoMRSA exponent. See also the crypto data type.
This object represents a true subset of JWK [RFC7517].
6. Signature Validation
JSF implementors are presumed to be familiar with JWS [RFC7515].
Prerequisite: A JSON object in accordance with [RFC7493] containing an arbitrary but unique top level property (see p256#es256@name-jwk.json) holding a JSF signaturecore, multisignature or signaturechain object.
Note that there must not be any not here defined properties inside of the signature object and that the use of JCS [RFC8785] implies certain constraints on the JSON data.
Since JSF uses the same algorithms as JWS, the JWA [RFC7518] reference apply. The process for recreating the signed data must be performed as follows:
  1. The "value" property is deleted from the JSF signature object.
  2. The signed data is retrieved by running the JCS [RFC8785] canonicalization method over the remaining object in its entirety.
Note that data that is unsigned (as defined by the excludes property), must be excluded from the JCS process.
Applied on the Sample Object, a conforming JCS process should return the following JSON string:
{"id":2200063,"name":"Joe","now":"2019-02-10T11:23:06Z","signature":{"algorithm":"ES256","publicKey":{"crv":"
P-256","kty":"EC","x":"6BKxpty8cI-exDzCkh-goU6dXq3MbcY0cd1LaAxiNrU","y":"mCbcvUzm44j3Lt2b5BPyQloQ91tf2D2V-gze
UxWaUdg"}}}
Note that the output string was folded for improving readability.
The signature supplied in the value property can now be validated by applying the algorithm specified in the algorithm property (together with the appropriate signature verification key), on the UTF-8 representation of the canonicalized textual data.
Path validation (when applicable), is out of scope for JSF, but is preferably carried out as described in X.509 [RFC5280].
7. Signature Creation
Prerequisite: A JSON object in accordance with [RFC7493].
The process to sign a JSON object using JSF is as follows:
  1. Create a JSF object with all components defined except for the "value" property.
  2. Add the JSF object to the top level JSON object to be signed using any valid JSON property name which does not clash with the other top level properties.
  3. Generate the required format of the JSON object to be signed by running the JCS [RFC8785] canonicalization method over the JSON object in its entirety.
  4. Apply the selected signature algorithm and key to the value generated in the previous step.
  5. Complete the process by adding the "value" property (with the argument set to the result of the previous step), to the JSF object.
.Note that data that should not be signed (as defined by the excludes property), must be excluded from the JCS process.
8. Multiple Signatures
Multiple signatures enable different keys to independently of each other add a signature to a JSON object. See the Multi Signature Sample.
The canonicalization procedure is essentially the same as for simple signatures but must also take the following in account:See also Counter Signatures.
9. Signature Chains
Signature chains require that each added signature object does not only sign the data but the preceding signature objects as well. See the Signature Chain Sample.
The canonicalization procedure is essentially the same as for simple signatures but must also take the following in account:See also Counter Signatures.
10. Security Considerations
This specification does (to the author's knowledge), not introduce additional vulnerabilities over what is specified for JWS [RFC7515].
Appendix A: Test Vectors
This section holds test data which can be used to verify the correctness of a JSF implementation.
p256privatekey.jwk
The Sample Object was signed by the following EC private key in the JWK [RFC7517] format:
{
  "kid": "example.com:p256",
  "kty": "EC",
  "crv": "P-256",
  "x": "6BKxpty8cI-exDzCkh-goU6dXq3MbcY0cd1LaAxiNrU",
  "y": "mCbcvUzm44j3Lt2b5BPyQloQ91tf2D2V-gzeUxWaUdg",
  "d": "6XxMFXhcYT5QN9w5TIg2aSKsbcj-pj4BnZkK7ZOt4B8"
}
p256#es256@kid.json
The following object was signed by the p256privatekey.jwk key while the public key is identified by a keyId property:
{
  "now": "2019-02-10T11:23:06Z",
  "name": "Joe",
  "id": 2200063,
  "signature": {
    "algorithm": "ES256",
    "keyId": "example.com:p256",
    "value": "Il-GTiAwCgAX3X9IC7AWfVzySWA18ZLGgHgj3KDfp0-1XsjkVDdypdIFjE9vWdieI6-pHabo6UzcYGubFSVS_w"
  }
}
p256#es256@imp.json
The following object was signed by the p256privatekey.jwk key while the public key is supposed to be implicitly known by the verifier:
{
  "now": "2019-02-10T11:23:06Z",
  "name": "Joe",
  "id": 2200063,
  "signature": {
    "algorithm": "ES256",
    "value": "0nJX_Ek5PRjV0mQN19E5Hcfdjf_T-I49E0AzJD6VYFq-3PxHXlF6cn52VfOZN9brFfURXV9INiYrB--9v4Ly1Q"
  }
}
p256#es256@cer.json
The following object was signed by the p256privatekey.jwk key while the public key is featured in a certificatePath:
{
  "now": "2019-02-10T11:23:06Z",
  "name": "Joe",
  "id": 2200063,
  "signature": {
    "algorithm": "ES256",
    "certificatePath": [
      "MIIB4zCCAUSgAwIBAgIGAXQvSpluMAoGCCqGSM49BAMEMBYxFDASBgNVBAMTC1Rlc3QgU3ViIENBMB4XDTE4MDEwMTAwMDAwMFoXDT
MwMTIzMTIzNTk1OVowNzE1MDMGA1UEAxMsVGVzdCBjZXJ0aWZpY2F0ZSBtYXRjaGluZyBwMjU2cHJpdmF0ZWtleS5wZW0wWTATBgcqhkjOPQI
BBggqhkjOPQMBBwNCAAToErGm3Lxwj57EPMKSH6ChTp1ercxtxjRx3UtoDGI2tZgm3L1M5uOI9y7dm-QT8kJaEPdbX9g9lfoM3lMVmlHYo10w
WzAJBgNVHRMEAjAAMA4GA1UdDwEB_wQEAwID-DAdBgNVHQ4EFgQUA7M3k-KvWbX6doCGtEiuymmJmsAwHwYDVR0jBBgwFoAUoxFlz13AUKdL5
RnhdntUmrdPl4owCgYIKoZIzj0EAwQDgYwAMIGIAkIBkOc9pom0iG4DK4bxq6YDHIOOzXfzrgXAQlC13d1y_rgdr8u5dzWPwzGO4YlSUZxh7G
4OWdn5tdLltud69ZjXW_oCQgF5V3fe1smjY8uj3Xesz3DObu2RE_f_Bqaotf_7H0sA-z7t0nJTo6MeiDVsLmx4Re9q_PxpH2oIN-01l_SDbGA
DfQ",
      "MIIDgzCCAWugAwIBAgIBAzANBgkqhkiG9w0BAQ0FADAXMRUwEwYDVQQDEwxUZXN0IFJvb3QgQ0EwHhcNMTYwNzEwMTAwMDAwWhcNMz
kwNzEwMDk1OTU5WjAWMRQwEgYDVQQDEw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e3z3Z1Sx7I"
    ],
    "value": "OJihSlnH4b35ur8pp-VmU30rQKUwBeCJn8gBCIKExs_DsNshVxDyAYjdIWhjAKdkJVih6oddxIjJORHAFTHX7Q"
  }
}
p256#es256@name-jwk.json
The following object was signed by the p256privatekey.jwk key but uses another property name than in the other samples for holding the signaturecore object:
{
  "now": "2019-02-10T11:23:06Z",
  "name": "Joe",
  "id": 2200063,
  "authorizationSignature": {
    "algorithm": "ES256",
    "publicKey": {
      "kty": "EC",
      "crv": "P-256",
      "x": "6BKxpty8cI-exDzCkh-goU6dXq3MbcY0cd1LaAxiNrU",
      "y": "mCbcvUzm44j3Lt2b5BPyQloQ91tf2D2V-gzeUxWaUdg"
    },
    "value": "2kbNgBVkRU05yUJ53jdR4gAx-LeLeZCBmD88y_WVlLBGvxyOP5ASS-WRgiX3HjLu7y8P5c7Qy7ngjWATZmO3lw"
  }
}
p256#es256@exts-jwk.json
The following object was signed by the p256privatekey.jwk key. There is also an extensions list:
{
  "now": "2019-02-10T11:23:06Z",
  "name": "Joe",
  "id": 2200063,
  "signature": {
    "algorithm": "ES256",
    "publicKey": {
      "kty": "EC",
      "crv": "P-256",
      "x": "6BKxpty8cI-exDzCkh-goU6dXq3MbcY0cd1LaAxiNrU",
      "y": "mCbcvUzm44j3Lt2b5BPyQloQ91tf2D2V-gzeUxWaUdg"
    },
    "extensions": ["otherExt", "https://example.com/extension"],
    "otherExt": "Cool Stuff",
    "https://example.com/extension": {
      "life-is-great": true
    },
    "value": "jFlU5VEGcq7ezESeKX_JR79rrppnE4uxmnPTLeYth6atfJker7oDon1R3yKLEeGS1vVntVpuGjxNSdLqIrLd0A"
  }
}
p256#es256@excl-jwk.json
The following object was signed by the p256privatekey.jwk key. There is also an excludes list:
{
  "mySignedData": "something",
  "myUnsignedData": "something else",
  "signature": {
    "algorithm": "ES256",
    "publicKey": {
      "kty": "EC",
      "crv": "P-256",
      "x": "6BKxpty8cI-exDzCkh-goU6dXq3MbcY0cd1LaAxiNrU",
      "y": "mCbcvUzm44j3Lt2b5BPyQloQ91tf2D2V-gzeUxWaUdg"
    },
    "excludes": ["myUnsignedData"],
    "value": "EWkjHQTGBptNmhCsRw2wHqX64XpWS_4n4ba3DJ8HisvWl4eZYHsx6QCe7NIrwYHJOB6Tr-yOqN3G7oH9zH27jQ"
  }
}
p384privatekey.jwk
EC private key associated with subsequent objects:
{
  "kid": "example.com:p384",
  "kty": "EC",
  "crv": "P-384",
  "x": "o4lIdIXzdJro4jU9g-2q-__i5WcutpJaWwOeSgKL8x6nxKWOPD5rH-POQhJ79l6t",
  "y": "MLnyLIGdTO2feJkCW3rWWKG3elhi1Zmbp068Ejb_1LuI-2cNQsRUqb16TfK588_N",
  "d": "woqAfcmqQ5T0rD-FlnTqjXw8wLOIXACCIy4SoWwy8jiSc_BRVH5jGPwZZUyvP1vd"
}
p384#es384@jwk.json
The following object was signed by the p384privatekey.jwk key:
{
  "now": "2019-02-10T11:23:06Z",
  "name": "Joe",
  "id": 2200063,
  "signature": {
    "algorithm": "ES384",
    "publicKey": {
      "kty": "EC",
      "crv": "P-384",
      "x": "o4lIdIXzdJro4jU9g-2q-__i5WcutpJaWwOeSgKL8x6nxKWOPD5rH-POQhJ79l6t",
      "y": "MLnyLIGdTO2feJkCW3rWWKG3elhi1Zmbp068Ejb_1LuI-2cNQsRUqb16TfK588_N"
    },
    "value": "OxXAQrGMw1F_PaSnsqDs2y2waf6N9UAR79XgL8lFhkVyHW2m1gyjriLRJUtH6lG3fts_zzhrCLUoLo4dQTFzRPrNilSWaMS
yH6BIHldfA-DWE--Pe-o5yHKrEQ97mCcq"
  }
}
p384#es384@kid.json
The following object was signed by the p384privatekey.jwk key while the public key is identified by a keyId property:
{
  "now": "2019-02-10T11:23:06Z",
  "name": "Joe",
  "id": 2200063,
  "signature": {
    "algorithm": "ES384",
    "keyId": "example.com:p384",
    "value": "GVCa3WHgNlpW39Aj9X4V2pIng9305zsDZwcv6FCpRRSgfVI3oj0a_GKEKGPHcdkg5efX1mcm9PsY5Puhbx7sDF8I0LyPXnc
pL2JT5LPekC1qCyGZjQKrVUnuHeCf3zdO"
  }
}
p384#es384@imp.json
The following object was signed by the p384privatekey.jwk key while the public key is supposed to be implicitly known by the verifier:
{
  "now": "2019-02-10T11:23:06Z",
  "name": "Joe",
  "id": 2200063,
  "signature": {
    "algorithm": "ES384",
    "value": "vH3otMMlnOX7TgkgF39xhJuXtYlevK0m6_Xk9ueYqO_p4jZccOGLAifXlfALnGYlrcwb4-yfptpjI0MIpqW5D4GQ9s-Lac5
t9X1y5RbY8o27-M9qRx8-G-R4BuGy74nq"
  }
}
p384#es384@cer.json
The following object was signed by the p384privatekey.jwk key while the public key is featured in a certificatePath:
{
  "now": "2019-02-10T11:23:06Z",
  "name": "Joe",
  "id": 2200063,
  "signature": {
    "algorithm": "ES384",
    "certificatePath": [
      "MIIB_zCCAWGgAwIBAgIGAXQvStY5MAoGCCqGSM49BAMEMBYxFDASBgNVBAMTC1Rlc3QgU3ViIENBMB4XDTE4MDEwMTAwMDAwMFoXDT
MwMTIzMTIzNTk1OVowNzE1MDMGA1UEAxMsVGVzdCBjZXJ0aWZpY2F0ZSBtYXRjaGluZyBwMzg0cHJpdmF0ZWtleS5wZW0wdjAQBgcqhkjOPQI
BBgUrgQQAIgNiAASjiUh0hfN0mujiNT2D7ar7_-LlZy62klpbA55KAovzHqfEpY48Pmsf485CEnv2Xq0wufIsgZ1M7Z94mQJbetZYobd6WGLV
mZunTrwSNv_Uu4j7Zw1CxFSpvXpN8rnzz82jXTBbMAkGA1UdEwQCMAAwDgYDVR0PAQH_BAQDAgP4MB0GA1UdDgQWBBSkkDbYHSxBQcPCMDXf8
e7Oz2sPXjAfBgNVHSMEGDAWgBSjEWXPXcBQp0vlGeF2e1Sat0-XijAKBggqhkjOPQQDBAOBiwAwgYcCQgGiCQtibiWyX2suaBsSUdJifTMqKV
8a9AhNnK8-ImQ_8OgHRa3isVOBCBD5lSGWypKgV-JNUni5xD3n63UwxuAgBQJBD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REHpteSC
E2AyZ-7_loaKsWV_riTqv7GgGVUnke8p0XNjtzMzD-iJVNvLKNhpt4w84jB11TGqnvuJ3i73e-hg96yZITAhMgUSXpn_cZtCPl3oHu7Cjpu78
vyuA0QatYCEBPMAlUfQs-exA8nkV40giCBc3muOpsTjJW1-vQrxpFGkXvK4s9wuzqVrrbXRGNYNCiO6ZrEDJJ3_Ms24bE4JJ_uPnhy7LqtmuU
Ehe3z3Z1Sx7I"
    ],
    "value": "BUiNYx-lD_M0LfRQJIbparogOgQLhAN-huhD5Ou9Eh8E9AVMu0O5teKxQHiH7z7aMQ_wD3bcpxucWIJNeKtLtp2YSQoPhnM
JTJyY6xBBX2cjzzlTjeTcPMQZNa2V0MJK"
  }
}
p521privatekey.jwk
EC private key associated with subsequent objects:
{
  "kid": "example.com:p521",
  "kty": "EC",
  "crv": "P-521",
  "x": "AVb-eD8V1UAzN8GWoUypQ_8xSABA4PwUZ1O_fanjLvbwpuyoniN98ljWt3y93TCrDAqe1089tLCfpJhre8M5frBs",
  "y": "ABORvO-p61zLrGCtgqqqFcQJX_ljnoJ7iDd1IIKZSyksI8aElmtJFCRVSgCyU_P7mSmilqVVaBWhE9fqRHcQ2u_c",
  "d": "AUxbUwj3PKhK08nxKFFRToiriDJyp_bUv0puyt0qch9UwQ5qCjqBqSPAOB5RyvPKy0XwKDhXJGeAGsVqKzsUMRxA"
}
p521#es512@jwk.json
The following object was signed by the p521privatekey.jwk key:
{
  "now": "2019-02-10T11:23:06Z",
  "name": "Joe",
  "id": 2200063,
  "signature": {
    "algorithm": "ES512",
    "publicKey": {
      "kty": "EC",
      "crv": "P-521",
      "x": "AVb-eD8V1UAzN8GWoUypQ_8xSABA4PwUZ1O_fanjLvbwpuyoniN98ljWt3y93TCrDAqe1089tLCfpJhre8M5frBs",
      "y": "ABORvO-p61zLrGCtgqqqFcQJX_ljnoJ7iDd1IIKZSyksI8aElmtJFCRVSgCyU_P7mSmilqVVaBWhE9fqRHcQ2u_c"
    },
    "value": "AarnKZEM1hfLd4hpeDguOMV0wAX-7r3z7qRG6RR1MNy3ypliYFSrziQoV1bSYiy7B7VbULQPvtcjhtIAqjRPqaMMAOxplmb
KUQNsHQcTxSfrX5jmHbxI_XZpaKv0Fagl7lNmlnHcRx9eeO7Vq8aqIlhQ1afYy34-fTjxHBwe0kNEkyqN"
  }
}
p521#es512@kid.json
The following object was signed by the p521privatekey.jwk key while the public key is identified by a keyId property:
{
  "now": "2019-02-10T11:23:06Z",
  "name": "Joe",
  "id": 2200063,
  "signature": {
    "algorithm": "ES512",
    "keyId": "example.com:p521",
    "value": "ABePs8Mek8iGGi5CX9FHoLcezTYzY1WRLi_QVgHLPN-bzKUhsGbTDEpebHlB1yv0k9kAe1TAXMJAmB0pSDTkM5wFAaY58KJ
kfvQAKjQHztYFn4Z4DOPiOXG_18azwKGwynzV6-9XFSd1mcH7R42KZxhIvRGQTKpSLHPxyiSxEH1ccLGh"
  }
}
p521#es512@imp.json
The following object was signed by the p521privatekey.jwk key while the public key is supposed to be implicitly known by the verifier:
{
  "now": "2019-02-10T11:23:06Z",
  "name": "Joe",
  "id": 2200063,
  "signature": {
    "algorithm": "ES512",
    "value": "AHXuqzN7f0IPEcgyJCEJdNS18ITiyt1q7zOMzGlh7ZIDMfOsqY_tx-HMua9UrlMRIEzPJAQqjZKiAgoFwLcBP6yQAQyX_-V
er--u9lEqX566AViazxua-DVPAFpUXGG8Pe5Ju5vikkNNGFQFcQsA5l3g7NZO_OOzkgscZhgX7psl6vsN"
  }
}
p521#es512@cer.json
The following object was signed by the p521privatekey.jwk key while the public key is featured in a certificatePath:
{
  "now": "2019-02-10T11:23:06Z",
  "name": "Joe",
  "id": 2200063,
  "signature": {
    "algorithm": "ES512",
    "certificatePath": [
      "MIICJDCCAYegAwIBAgIGAXQvSvTAMAoGCCqGSM49BAMEMBYxFDASBgNVBAMTC1Rlc3QgU3ViIENBMB4XDTE4MDEwMTAwMDAwMFoXDT
MwMTIzMTIzNTk1OVowNzE1MDM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hdntUmrdPl4owHwYDVR0jBBgwFoAUQI50o7LJMzle8DBu7lOobUF1IcowDQYJKoZIhvcNAQENBQADggIBAB2a9M8LkaTQh5iZW8
-vpkFdiu5sFcOUWKxtFZ7FImuFMPkJbUhHBAYjnSXiLb0SyqWwh4QlO2qSpGqxEjpuGtam-maKsvKxMLwybPgv18-bsbmM7ZjBG7MQYox5P7j
FYZB4U4I3Pn0kQK6Bdr18Ua8EP8YkTKyJS6Gmohl6iTtdsgOdJ5EHjzC0GhzwiR3pXKDX44LO0aK6lERWX3uOAqZazB-K8qhFnh1MA6_p-q1z
VcEIuPcfKmi-8wBOjqHhao8ThmB8afpolWfFrEx23e5ybUe4FPAGMh_5lRP0pA7yHdethk3J5KKScmBioFDm0d8NxlojjMXKHIe0hwJQB6YJj
EPlFw1-U0a4l4IbHEFIywuTmRP0-gCeiznnHkg96JvJRDiQt8sj2DOaCi784HlbVQQQzTBd8VJoCJRgG9CChXqcZn5T-wThGviuMzREHpteSC
E2AyZ-7_loaKsWV_riTqv7GgGVUnke8p0XNjtzMzD-iJVNvLKNhpt4w84jB11TGqnvuJ3i73e-hg96yZITAhMgUSXpn_cZtCPl3oHu7Cjpu78
vyuA0QatYCEBPMAlUfQs-exA8nkV40giCBc3muOpsTjJW1-vQrxpFGkXvK4s9wuzqVrrbXRGNYNCiO6ZrEDJJ3_Ms24bE4JJ_uPnhy7LqtmuU
Ehe3z3Z1Sx7I"
    ],
    "value": "AbJbakFg46YGk7NctuDiiAeT_NTcSlhgYMEqDnt9kPBNVmIOg76wFcLJtJKvH1N-3uzJE_VXkapW87UcAbYRAj7CAQHep32
WWSmwN-Ib3qtFEvA9Jz9eRD8FK5FH09NjSHZmySgZGRNzsndhW7KscLGLUy25EOuNRTERaeRq8UTgydp2"
  }
}
r2048privatekey.jwk
RSA private key associated with subsequent objects:
{
  "kid": "example.com:r2048",
  "kty": "RSA",
  "n": "ptKZyFPStvmOlb0WihOBhlHUr6wFDHC-tW7hJAudfTQ5mHZQ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uJ8aMLnOjMEOiGpFBHlJc1P9AifN0YYw54-fQfBP-c3OOo3vV5GjL
hR0VC2BaJlbJFN_HSUZSOwGsGsGiHf7ZZ8onLBGdgPBPBBDzdug7KI27EJoYPWs_AoyjyIk",
  "dq": "PIePE4uc615edbtsu_cJouNjjWDqaKnyHrYsPlOdXNkVCHonj9ICffmDYpgignLLbA5dAkkJgCA8Ak7gnoOnlrg4ID4zmklc3UNJ
jBvB2qw65E35QyPijMPYBXAUZUppTTjPG-ub59ge0msH1Hegdv8FHJJABSDBA0tbYm5zDzk",
  "qi": "Pf9CrVihTIRd79NS-eAFxeW9eUa6AYWQH8yNVNMDzuCek8_tSqpra8B0wTyN-p8yEyIZTIXKE7DETIJ79DR88ZXEEJgMt36BQRTs
h16pd4T7VmxFYgeY0LOHD-bbNaIr1YaxLa6xOdUxuFfxH3w9SSoh5ezBAmBDMgc99T7EQrs"
}
r2048#rs256@jwk.json
The following object was signed by the r2048privatekey.jwk key:
{
  "now": "2019-02-10T11:23:06Z",
  "name": "Joe",
  "id": 2200063,
  "signature": {
    "algorithm": "RS256",
    "publicKey": {
      "kty": "RSA",
      "n": "ptKZyFPStvmOlb0WihOBhlHUr6wFDHC-tW7hJAudfTQ5mHZQpB8PoMz07udZA-dG8dhUIPkmXlp1TgREeYTHdhxhuf0y_Ghbp
Zv5JPYHx3watO-HWO2qYkjRMEcrWhPMdaVkS_Xe_liaMcow4jYoWaFm8VobeYsyVD2bWWdyl4joTEETm1Z47RnnfR15kVhVudVrDzEFmM4nXV
_6dmIg184RJE4httwBFxR8qZCQCwTiJmsoyJxfUR0Gs4ePKc5sB0NTkmFZc5klQSitd67RJn2ldhbqE7EpDl4XlIt-UyLJm1guCBltia8Agke
7dXuhpB7hQ6LJwY4EjzthkJ8IPw",
      "e": "AQAB"
    },
    "value": "IbTdSjKTYiFa-OP4m4wynLLHFxRgY0jwr7lonUIAG8zRpiX9d0ffR_ynGGjchtHH5CtXjfiKtWau0hqejmLqOHzx0I9xcDO
Ly42aOzBwITU7dElpsXSVYB76i5ekh2pD-swPJ_7E3aIfL1FPDiHjmbxWEjQseifSri4OX27iMqZVjfwIVSA-xKc-_C40r_eDwtB8tdJRaMDn
I-Fsu1xf8X7mAiCjhqwRTqEWEySaXN-yGtLgi_ee0OemaBsY7fD2YnL9l9k4fq_A0JwoedRK26VLzoI1HfJ1uK-lrtud0_Ne7IXfZTeZDSKoP
HY1LDVzVm0asVvkB10NrLRHO4hDYg"
  }
}
r2048#ps256@jwk.json
The following object was signed by the r2048privatekey.jwk key. Note the use of the RSASSA PSS algorithm:
{
  "now": "2019-02-10T11:23:06Z",
  "name": "Joe",
  "id": 2200063,
  "signature": {
    "algorithm": "PS256",
    "publicKey": {
      "kty": "RSA",
      "n": "ptKZyFPStvmOlb0WihOBhlHUr6wFDHC-tW7hJAudfTQ5mHZQpB8PoMz07udZA-dG8dhUIPkmXlp1TgREeYTHdhxhuf0y_Ghbp
Zv5JPYHx3watO-HWO2qYkjRMEcrWhPMdaVkS_Xe_liaMcow4jYoWaFm8VobeYsyVD2bWWdyl4joTEETm1Z47RnnfR15kVhVudVrDzEFmM4nXV
_6dmIg184RJE4httwBFxR8qZCQCwTiJmsoyJxfUR0Gs4ePKc5sB0NTkmFZc5klQSitd67RJn2ldhbqE7EpDl4XlIt-UyLJm1guCBltia8Agke
7dXuhpB7hQ6LJwY4EjzthkJ8IPw",
      "e": "AQAB"
    },
    "value": "SJnq3uAhfcDFv5MLCDhmfGE9_QQG5iDoF6urZp4uvOq-wGPDujImXHNs38XMPCQJVvDIf9Pdw1udXJAUCMkuWL0fBpMeBLr
iydIYNml4FOGJJ3506I3Hqk-zdjVwfBrguHshS1hniMzTqo8dzlPWxgPzU0KTDeg2xTuXOs2rbvENyqym-jHgn_iCMBQIWCwA5nQIxVmVVHNq
F_wY5aUJcO1ySSWVsBk7P2_NpHNO_dOPaxdvvCvrbRne226edD4mOb6adtHoIdXVIhpsulkGEefBnqXQYvmjq_62rnCTZCfXTfM2ylp98NNgT
_hyj1IN4yA5Wxwq86UP9of9yOxQ4w"
  }
}
r2048#rs256@kid.json
The following object was signed by the r2048privatekey.jwk key while the public key is identified by a keyId property:
{
  "now": "2019-02-10T11:23:06Z",
  "name": "Joe",
  "id": 2200063,
  "signature": {
    "algorithm": "RS256",
    "keyId": "example.com:r2048",
    "value": "Ra3r-1ZGBh-UkMzjyS70mRuw3LmC7E8TmG5y0V7EIZrnvz5lfqXl0DL20ftSpbwzFPAlkH_iywKH9g85e5TYQUlMsI7ptsj
NURQv-2dRbOq4UhCjbxA8T33424tfraHMutKhJ4vhHhvDgYLqDg9Pwh2RrgcXrBc5VgCAFSR2mhzkjzyJlrOekByf6q9MyPpMjok6wBDkEoWQ
8c2vEdEbck6kARYEr3AeOTsnsUptkgbsJ2xQ4ZK4Al93LMW6xiuIa1ATuYwNUilWDhJqYUnAEA54uYRNEFULYqLRjBIGipnFtz7-802K1DfjU
tHSL7unwZRNg5CtFHlWAeJ8rhv-mA"
  }
}
r2048#rs256@imp.json
The following object was signed by the r2048privatekey.jwk key while the public key is supposed to be implicitly known by the verifier:
{
  "now": "2019-02-10T11:23:06Z",
  "name": "Joe",
  "id": 2200063,
  "signature": {
    "algorithm": "RS256",
    "value": "X6k3LmtM2UT4N13yu-vUBdM84hfYZDbxRdt49WacS3OAbYzHE33XZK5i8J7enIzvZEggxeIhQ1Wu2LpTqxNgZEjAo7qYNl4
W3rilme0KNH-NnB-4BHQawqCv9_uzKnFt3MwK_nyc-Wl-7ngKrL2LvbLgY4i1GM8u0vBB_92QDMYrqVC3S6nRh9IUaQcLShyAiSMa6BwbEg0m
AZgGZxMsu2tEXvNyyrYV0Z4Fsl_SMVon_kXCAFuJB-WpdpIan6GGQ1wrSkHXu4OZjvabO0qIqkE3aP2WWUPCfHbtI-Z0Iq4N3U5D56-Y8Q6OU
WBWkd4kt3dAD1Q2OBbA42sKUGROnw"
  }
}
r2048#rs256@cer.json
The following object was signed by the r2048privatekey.jwk key while the public key is featured in a certificatePath:
{
  "now": "2019-02-10T11:23:06Z",
  "name": "Joe",
  "id": 2200063,
  "signature": {
    "algorithm": "RS256",
    "certificatePath": [
      "MIICrTCCAhCgAwIBAgIGAXQvSnr8MAoGCCqGSM49BAMEMBYxFDASBgNVBAMTC1Rlc3QgU3ViIENBMB4XDTE4MDEwMTAwMDAwMFoXDT
MwMTIzMTIzNTk1OVowODE2MDQGA1UEAxMtVGVzdCBjZXJ0aWZpY2F0ZSBtYXRjaGluZyByMjA0OHByaXZhdGVrZXkucGVtMIIBIjANBgkqhki
G9w0BAQEFAAOCAQ8AMIIBCgKCAQEAptKZyFPStvmOlb0WihOBhlHUr6wFDHC-tW7hJAudfTQ5mHZQpB8PoMz07udZA-dG8dhUIPkmXlp1TgRE
eYTHdhxhuf0y_GhbpZv5JPYHx3watO-HWO2qYkjRMEcrWhPMdaVkS_Xe_liaMcow4jYoWaFm8VobeYsyVD2bWWdyl4joTEETm1Z47RnnfR15k
VhVudVrDzEFmM4nXV_6dmIg184RJE4httwBFxR8qZCQCwTiJmsoyJxfUR0Gs4ePKc5sB0NTkmFZc5klQSitd67RJn2ldhbqE7EpDl4XlIt-Uy
LJm1guCBltia8Agke7dXuhpB7hQ6LJwY4EjzthkJ8IPwIDAQABo10wWzAJBgNVHRMEAjAAMA4GA1UdDwEB_wQEAwID-DAdBgNVHQ4EFgQU7EP
tQjf0D19X9PWV4i-XcGdsJn0wHwYDVR0jBBgwFoAUoxFlz13AUKdL5RnhdntUmrdPl4owCgYIKoZIzj0EAwQDgYoAMIGGAkFEUasikL7bwPS_
q7P9N6ncoBU0Irmpci_jkyMiK7B91mUwwg3JAv2N9b4ba9Qi6H-w2DgFyRftQFrLizxMxk8I2QJBORQt-3GUVQCIQ50F4s7PsXOorJ83tVNFp
-vlZQs3z2d_LsUi8CsbxY5T9dSKPmIrXuXEAVDozS0rgdsWG_CBQVM",
      "MIIDgzCCAWugAwIBAgIBAzANBgkqhkiG9w0BAQ0FADAXMRUwEwYDVQQDEw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OpsTjJW1-vQrxpFGkXvK4s9wuzqVrrbXRGNYNCiO6ZrEDJJ3_Ms24bE4JJ_uPnhy7LqtmuU
Ehe3z3Z1Sx7I"
    ],
    "value": "WIJwLjU1TxyQ-8Xdqs7yPwXVZVPEfYWDsMgB_BOfN85iwdz42sMzAcCPjsKTRl4vFwsTomQOt9fRNphBXAQG22KPiJuWtQv
-hHW-vzfLghThmGGrNVbrAleWnRnfOWlS0jSl5GEZUH2W_OLzfpYaR2EU3JF8RxweO2W1mpWiUW18PeBCEGJ2OSKe3lezdg--2x8oxTqG5WfB
cq6FV-B0lE36ulD2ZqFqlSpJq9JxjoTXKSUdCgUPmOt1OePvgkFnzEkHBvF6KMTVEFVWxud53bkPlCZH3eGpqR0d4JxKT4JSxAvgGfOuTDxDT
prulzm2iVNr-8Cd6W4-fQZcRsbvgA"
  }
}
ed25519privatekey.jwk
Ed25519 private key associated with subsequent objects:
{
  "kid": "example.com:ed25519",
  "kty": "OKP",
  "crv": "Ed25519",
  "x": "_kms9bkrbpI1lPLoM2j2gKySS-k89TOuyvgC43dX-Mk",
  "d": "0flr-6bXs459f9qwAq20Zs3NizTGIEH5_rTDFoumFV4"
}
ed25519#ed25519@jwk.json
The following object was signed by the ed25519privatekey.jwk key:
{
  "now": "2019-02-10T11:23:06Z",
  "name": "Joe",
  "id": 2200063,
  "signature": {
    "algorithm": "Ed25519",
    "publicKey": {
      "kty": "OKP",
      "crv": "Ed25519",
      "x": "_kms9bkrbpI1lPLoM2j2gKySS-k89TOuyvgC43dX-Mk"
    },
    "value": "UtN9-gMgTkfAdBJRX4gi0s6iKYiilO5EmXRD4KRSEnPKo5Og1ltbGYZecdJqKphCXkboIE_pecfszHEQXeqqDA"
  }
}
ed25519#ed25519@kid.json
The following object was signed by the ed25519privatekey.jwk key while the public key is identified by a keyId property:
{
  "now": "2019-02-10T11:23:06Z",
  "name": "Joe",
  "id": 2200063,
  "signature": {
    "algorithm": "Ed25519",
    "keyId": "example.com:ed25519",
    "value": "Z5GCvK_W6s1aiEVHlLlqlc2Q-Hq07lOkSIjKVdhjwBHnATwevYfZ8GbooHjjbN8Eb0JN-E4zT40dbGi6TnjPCA"
  }
}
ed25519#ed25519@imp.json
The following object was signed by the ed25519privatekey.jwk key while the public key is supposed to be implicitly known by the verifier:
{
  "now": "2019-02-10T11:23:06Z",
  "name": "Joe",
  "id": 2200063,
  "signature": {
    "algorithm": "Ed25519",
    "value": "VIjBJ-x4A7wPf0QiPBEvLEcPLfuMPJzaxooHPk3I65Vst2j1YYZvfc7T83oiujkUyCRbJrY5qX4rCk-OVFEmCw"
  }
}
ed25519#ed25519@cer.json
The following object was signed by the ed25519privatekey.jwk key while the public key is featured in a certificatePath:
{
  "now": "2019-02-10T11:23:06Z",
  "name": "Joe",
  "id": 2200063,
  "signature": {
    "algorithm": "Ed25519",
    "certificatePath": [
      "MIIBtjCCARigAwIBAgIGAXQ5PT0LMAoGCCqGSM49BAMEMBYxFDASBgNVBAMTC1Rlc3QgU3ViIENBMB4XDTE4MDEwMTAwMDAwMFoXDT
MwMTIzMTIzNTk1OVowOjE4MDYGA1UEAxMvVGVzdCBjZXJ0aWZpY2F0ZSBtYXRjaGluZyBlZDI1NTE5cHJpdmF0ZWtleS5wZW0wKjAFBgMrZXA
DIQD-Saz1uStukjWU8ugzaPaArJJL6Tz1M67K-ALjd1f4yaNdMFswCQYDVR0TBAIwADAOBgNVHQ8BAf8EBAMCA_gwHQYDVR0OBBYEFBIXdsxy
tWQHewcvr41VC6jGFG8KMB8GA1UdIwQYMBaAFKMRZc9dwFCnS-UZ4XZ7VJq3T5eKMAoGCCqGSM49BAMEA4GLADCBhwJCAQs-6SoC21pqz5Nva
lnODGL1-sAeewBhUeWBQDymdrbfpgLIRSgbvr5f_F4shQ1ehJLvWtZ5IQd2J-fjW4DxiahcAkENk5ZX_1BGeBw93EgCzwy27Bt6sMRGfnFI8s
GedkYFS_T6dasKq7nNsP3rN2a3V5OwIR7T35Nr16liZwevj4oyEQ",
      "MI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pn_cZtCPl3oHu7Cjpu78
vyuA0QatYCEBPMAlUfQs-exA8nkV40giCBc3muOpsTjJW1-vQrxpFGkXvK4s9wuzqVrrbXRGNYNCiO6ZrEDJJ3_Ms24bE4JJ_uPnhy7LqtmuU
Ehe3z3Z1Sx7I"
    ],
    "value": "behDQ8IZIZEzlUvRrl0WW6tsxEWKH68VYH_Dzou2roTSgxTH5pqoK-qz_6m5uXqHG5jPBUGGVLBnr5d4HTj3Ag"
  }
}
ed448privatekey.jwk
Ed448 private key associated with subsequent objects:
{
  "kid": "example.com:ed448",
  "kty": "OKP",
  "crv": "Ed448",
  "x": "IUkRrGrNQFnHA-pIcgwzTxyL4BlWyHqC6LkZbgyHMsM14mC2NfpW9QV_Ao7mkQXIZM2OCgCimEQA",
  "d": "EzABSeOFsw-6ydqO3YW4ZPONZqEOQ-0DARQ1U-v_jOCyXPI6FkGS1x1a5CAVY2HNTcfNYGKBriKC"
}
ed448#ed448@jwk.json
The following object was signed by the ed448privatekey.jwk key:
{
  "now": "2019-02-10T11:23:06Z",
  "name": "Joe",
  "id": 2200063,
  "signature": {
    "algorithm": "Ed448",
    "publicKey": {
      "kty": "OKP",
      "crv": "Ed448",
      "x": "IUkRrGrNQFnHA-pIcgwzTxyL4BlWyHqC6LkZbgyHMsM14mC2NfpW9QV_Ao7mkQXIZM2OCgCimEQA"
    },
    "value": "7etBe_-_lSMU1OXH38PRmT3MHvnf0IQcvX2GX-l16Ax7_-V7l0TDH31-ioXo0B8PV75PspWEm3-AVHmKpIUAbb8FU1k7KJc
Cc1m0HQOvbiDlIh3j_G10wrv5edpjDWBQ8Xjek94vGpKM7kA9Y--EkS4A"
  }
}
ed448#ed448@kid.json
The following object was signed by the ed448privatekey.jwk key while the public key is identified by a keyId property:
{
  "now": "2019-02-10T11:23:06Z",
  "name": "Joe",
  "id": 2200063,
  "signature": {
    "algorithm": "Ed448",
    "keyId": "example.com:ed448",
    "value": "OCU7mH_M9lf1hOKMhQBTqOOhSQRiKg9GyIGk-D1c1T5bnon7v0Mfi879N4vtA4KSuExxfUUldnQAaEWNLdTgVp8ojm2WVie
RAwgAlxddJ9KMqdcXoi-SJxLByySUG-UJj3MiJmW7hhRzergMTj31-y4A"
  }
}
ed448#ed448@imp.json
The following object was signed by the ed448privatekey.jwk key while the public key is supposed to be implicitly known by the verifier:
{
  "now": "2019-02-10T11:23:06Z",
  "name": "Joe",
  "id": 2200063,
  "signature": {
    "algorithm": "Ed448",
    "value": "SUjAWwmGUVzFkjUBs4FPCgrikPWyivcqLIlzADGgT8m4LwAvmLDSTdn8URgML5egnUDqLzBHeGqA_H_t6z-ziw6EkgSdj88
Uf_q2psWsQdltfe4EXuGjCgK5VTGgO1leN952xO9gjJD2KvofANdKsRsA"
  }
}
ed448#ed448@cer.json
The following object was signed by the ed448privatekey.jwk key while the public key is featured in a certificatePath:
{
  "now": "2019-02-10T11:23:06Z",
  "name": "Joe",
  "id": 2200063,
  "signature": {
    "algorithm": "Ed448",
    "certificatePath": [
      "MIIBzTCCAS-gAwIBAgIGAXQ5PVxGMAoGCCqGSM49BAMEMBYxFDASBgNVBAMTC1Rlc3QgU3ViIENBMB4XDTE4MDEwMTAwMDAwMFoXDT
MwMTIzMTIzNTk1OVowODE2MDQGA1UEAxMtVGVzdCBjZXJ0aWZpY2F0ZSBtYXRjaGluZyBlZDQ0OHByaXZhdGVrZXkucGVtMEMwBQYDK2VxAzo
AIUkRrGrNQFnHA-pIcgwzTxyL4BlWyHqC6LkZbgyHMsM14mC2NfpW9QV_Ao7mkQXIZM2OCgCimEQAo10wWzAJBgNVHRMEAjAAMA4GA1UdDwEB
_wQEAwID-DAdBgNVHQ4EFgQU4lfs3v1Em5Ew0LJyxdcfr8HAxn0wHwYDVR0jBBgwFoAUoxFlz13AUKdL5RnhdntUmrdPl4owCgYIKoZIzj0EA
wQDgYsAMIGHAkEG894Lsr2Izbj1DVgW1QkJ2J6L5Xjd3F8ma-aPzV2XuPaWg_tR4FLFEsO0swPoTa2JNoki1sF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G9CChXqcZn5T-wThGviuMzREHpteSC
E2AyZ-7_loaKsWV_riTqv7GgGVUnke8p0XNjtzMzD-iJVNvLKNhpt4w84jB11TGqnvuJ3i73e-hg96yZITAhMgUSXpn_cZtCPl3oHu7Cjpu78
vyuA0QatYCEBPMAlUfQs-exA8nkV40giCBc3muOpsTjJW1-vQrxpFGkXvK4s9wuzqVrrbXRGNYNCiO6ZrEDJJ3_Ms24bE4JJ_uPnhy7LqtmuU
Ehe3z3Z1Sx7I"
    ],
    "value": "UKHqM3DL39SMBDtYwaR3ynvvKaeiZdrLHBvnmMHK7k0O35DkzV1-aYHjbFvrFX9yVYBWd1ieCEuAGI7NnqGDjNOGm1KKmcR
9i7qpjPrh_SZJ_oflRA8L4MgxdyLJRRzKz8mT9z60HpmC_GQlOiMa0QcA"
  }
}
HMAC key named "a256bitkey" here provided in hexadecimal notation:
7fdd851a3b9d2dafc5f0d00030e22b9343900cd42ede4948568a4a2ee655291a
a256#hs256@kid.json
The following object was signed by the key above:
{
  "now": "2019-02-10T11:23:06Z",
  "name": "Joe",
  "id": 2200063,
  "signature": {
    "algorithm": "HS256",
    "keyId": "a256bitkey",
    "value": "GJ6Jhb-PfHpN6KPcjHBNxbO9j56ShgUh13JfmZ3ORkI"
  }
}
HMAC key named "a384bitkey" here provided in hexadecimal notation:
37b7daeedc3403eb865a506c19597a37582ad5059e08438ada8bf544ee44bb3024a15f8fa191bbe7a533a56c9fc1db1d
a384#hs384@kid.json
The following object was signed by the key above:
{
  "now": "2019-02-10T11:23:06Z",
  "name": "Joe",
  "id": 2200063,
  "signature": {
    "algorithm": "HS384",
    "keyId": "a384bitkey",
    "value": "FjkRAZS-HsGsC_WPKsF2fmaNO7CPp90asbgXfOPQjolyK_qQaOuJH_u7PgonjzN9"
  }
}
HMAC key named "a512bitkey" here provided in hexadecimal notation:
83d26e96b71a5dd767c215f201ef5884fb03dfe5a8ee9612d4e3c942e84d45dfdc5801cb8379958f3af600d68eba1a14e945c90f16556
71f042cea7b34d53236
a512#hs512@kid.json
The following object was signed by the key above:
{
  "now": "2019-02-10T11:23:06Z",
  "name": "Joe",
  "id": 2200063,
  "signature": {
    "algorithm": "HS512",
    "keyId": "a512bitkey",
    "value": "VJHJXrZhVMMWTKTJktmdE5J4xBjKwtdf25eItui4fIGuyYsiZD5M9n573WZ0XgM9q48gG1KpTee4q8LCW4a7qQ"
  }
}
p256#es256,r2048#rs256@mult-jwk.json
The following object was signed by multiple signatures (see Multiple Signatures) using the p256privatekey.jwk and r2048privatekey.jwk keys:
{
  "now": "2019-02-10T11:23:06Z",
  "name": "Joe",
  "id": 2200063,
  "signature": {
    "signers": [{
      "algorithm": "ES256",
      "publicKey": {
        "kty": "EC",
        "crv": "P-256",
        "x": "6BKxpty8cI-exDzCkh-goU6dXq3MbcY0cd1LaAxiNrU",
        "y": "mCbcvUzm44j3Lt2b5BPyQloQ91tf2D2V-gzeUxWaUdg"
      },
      "value": "Nmkfbz5AfQbLW7m3uZrc12yrXoP-skILw58Z9KRPFW0OYyrnuagJTVvKAfpaZ6SznQ69IGM_J8bBnsuois6JAg"
    },{
      "algorithm": "RS256",
      "publicKey": {
        "kty": "RSA",
        "n": "ptKZyFPStvmOlb0WihOBhlHUr6wFDHC-tW7hJAudfTQ5mHZQpB8PoMz07udZA-dG8dhUIPkmXlp1TgREeYTHdhxhuf0y_Gh
bpZv5JPYHx3watO-HWO2qYkjRMEcrWhPMdaVkS_Xe_liaMcow4jYoWaFm8VobeYsyVD2bWWdyl4joTEETm1Z47RnnfR15kVhVudVrDzEFmM4n
XV_6dmIg184RJE4httwBFxR8qZCQCwTiJmsoyJxfUR0Gs4ePKc5sB0NTkmFZc5klQSitd67RJn2ldhbqE7EpDl4XlIt-UyLJm1guCBltia8Ag
ke7dXuhpB7hQ6LJwY4EjzthkJ8IPw",
        "e": "AQAB"
      },
      "value": "JqJPRtttK-_whpZthVGZne1MONlMh5co7s8IWsI1-HAlqyYQTqmIIaIVBUc00MKxGZkle99d7GuF2GGKb_7aJtdsA5ZNU
YHzYReaX0xg6TKcM9ppWqeFQx_DXR6GlGv3NNhNqBy2uCT_vnwErlWlNe_KQd3KJeQDrqHVQHmvCrUnx2ShXQp6MhLkZ6mrAN_J2I9z-i6NWF
RG91aXfnupKvmrUZ8834ASbo5i2uEXbT8VeG9Ihuwi9iP7hhLmGd3ocUTsdtB4jTU2js7Q-F24_99SbIXW50Tfrp_TZWIjF9CqW8278OE4kGs
f9Qub4VkR0b7MXYFRsE0fxTw4rdPV7A"
    }]
  }
}
p256#es256,r2048#rs256@mult-exts-kid.json
The following object was signed by multiple signatures (see Multiple Signatures) using the p256privatekey.jwk and r2048privatekey.jwk keys while the public keys are identified by keyId properties. There is also an extensions list. Note that this JSF features optional extension arguments (the second signature lacks one element):
{
  "now": "2019-02-10T11:23:06Z",
  "name": "Joe",
  "id": 2200063,
  "signature": {
    "signers": [{
      "algorithm": "ES256",
      "keyId": "example.com:p256",
      "otherExt": "Cool Stuff",
      "https://example.com/extension": {
        "life-is-great": true
      },
      "value": "ekIi8iJ0nbzbwbjaU2uqtKLwM_oPRfNMwPPE-ULU9VlOVAQofuTidP9mOMQCm6PUFvbEQqEKO5M2b8sOIFKRaw"
    },{
      "algorithm": "RS256",
      "keyId": "example.com:r2048",
      "otherExt": "Other Data",
      "value": "jBFwsK-AalChwijrUGqAsOOfMrZUh6pPvKuPVwti3W_jSk5hTBo6gq1njvvbiV4MtPSFyBask0yeb7YMjpT7PpuqMRvxl
Y7yWLP8D827jAMRwetAzy1y63TMDPa2-OYM8JD2qY7DAb56iiNUIkhvXOTDldmKARpiwes6UjMdVlTw-M38P4-Bx0x1J7CQ4P6B0WU-WPzmMZ
oC1d-f7zPso3UwMXzgEpY5fWYO_KcHibj01rFTgCVuXVQJHXKqWlQTgtFvod9nS64eSBs3p8NULDkyCtbxphzQ_yDKDrFfGMRUrCkUVo39nxK
F7sKEEqNf7jdq4YzTGFg-ZGUVzSzKzA"
    }],
    "extensions": ["otherExt", "https://example.com/extension"]
  }
}
p256#es256,r2048#rs256@mult-excl-kid.json
The following object was signed by multiple signatures (see Multiple Signatures) using the p256privatekey.jwk and r2048privatekey.jwk keys while the public keys are identified by keyId properties. There is also an excludes list:
{
  "mySignedData": "something",
  "myUnsignedData": "something else",
  "signature": {
    "signers": [{
      "algorithm": "ES256",
      "keyId": "example.com:p256",
      "value": "E6rT21XjoXA-g00vmO5vQF-KKZnrr14jDsQ4mEdhJtdMTT0X0eMrJeDx_Prm0emHjttjid9UqIW25eEPS7ux4g"
    },{
      "algorithm": "RS256",
      "keyId": "example.com:r2048",
      "value": "XyD8ZqqhknW-l8ht_ryvhp8QDuKqB8dcs5F-vDKKMWXVbiWFSDNYpoUsEdHA1P1GU0med2fVCGHNLar2eiX_kXn9gApqw
wi_aDikpCEJLDcEGdajpIc_w2q3DgsYoIyoYWDOtcOpvzgrW5bMMi-hB3xyZ21msTA122zdroqDzFmILx6djpQgqZXry72HycGzvm-yT9Dylf
NW3B0g3esoW7abztrwp-e6KE1UOXPKxdMvuJu52lCgt2sZSdolbXudc0GH6nBUTNXehR1VbGhW0vtO9xXunP4KhCFNbOSf83Mz_3Yf2rO6rGC
TFsgWvQ6cAaCt-v18MddkuLX68goOxQ"
    }],
    "excludes": ["myUnsignedData"]
  }
}
p256#es256,r2048#rs256@chai-jwk.json
The following object was signed by a chain of signatures (see Signature Chains) using the p256privatekey.jwk and r2048privatekey.jwk keys:
{
  "now": "2019-02-10T11:23:06Z",
  "name": "Joe",
  "id": 2200063,
  "signature": {
    "chain": [{
      "algorithm": "ES256",
      "publicKey": {
        "kty": "EC",
        "crv": "P-256",
        "x": "6BKxpty8cI-exDzCkh-goU6dXq3MbcY0cd1LaAxiNrU",
        "y": "mCbcvUzm44j3Lt2b5BPyQloQ91tf2D2V-gzeUxWaUdg"
      },
      "value": "VJKH2mR8qwq5vPLbwA9i-IYoSdI8lLQ9Orz9vANsOCMw0FQB4KjEuBfdKJ1D2JSFoX7KcaMvCz24sT5cbeN8TA"
    },{
      "algorithm": "RS256",
      "publicKey": {
        "kty": "RSA",
        "n": "ptKZyFPStvmOlb0WihOBhlHUr6wFDHC-tW7hJAudfTQ5mHZQpB8PoMz07udZA-dG8dhUIPkmXlp1TgREeYTHdhxhuf0y_Gh
bpZv5JPYHx3watO-HWO2qYkjRMEcrWhPMdaVkS_Xe_liaMcow4jYoWaFm8VobeYsyVD2bWWdyl4joTEETm1Z47RnnfR15kVhVudVrDzEFmM4n
XV_6dmIg184RJE4httwBFxR8qZCQCwTiJmsoyJxfUR0Gs4ePKc5sB0NTkmFZc5klQSitd67RJn2ldhbqE7EpDl4XlIt-UyLJm1guCBltia8Ag
ke7dXuhpB7hQ6LJwY4EjzthkJ8IPw",
        "e": "AQAB"
      },
      "value": "YhGrlUD-wwoMLxTgZcDLlRq_dlUV300yffV6ejjbxhszocSI1qGu8Yn0p1vVTfgxPfR1VErQ_ME-XFAfck1_1vrrrWdv9
Vg5SzHrhu5YnJAhT7QUq3gR1s3iH9nS9xcA7HB3nuYc94z_vfDY2s3u-q-858Q6jnIGy0ejpOeEK7jSqwTbDkwRo5tguXmArMQHY92NB8Pt2h
I_11ZJH1CuShKixTtKP6DOu8Q8f8wgjC2AHcTjogeW7bMcH6k4kjdQGkwWWHSCjLVTxqxkpMcdkn2gaFBtaxzWd7kXAxMF8MyjoXV_J-cQn5f
U6uImR8MbMVYUmpPMVbvToEfXSZBiuw"
    }]
  }
}
p256#es256,r2048#rs256@chai-exts-kid.json
The following object was signed by a chain of signatures (see Signature Chains) using the p256privatekey.jwk and r2048privatekey.jwk keys while the public keys are identified by keyId properties. There is also an extensions list. Note that this JSF features optional extension arguments (the second signature lacks one element):
{
  "now": "2019-02-10T11:23:06Z",
  "name": "Joe",
  "id": 2200063,
  "signature": {
    "chain": [{
      "algorithm": "ES256",
      "keyId": "example.com:p256",
      "otherExt": "Cool Stuff",
      "https://example.com/extension": {
        "life-is-great": true
      },
      "value": "3ygfa_2Ju-SP_qBwt2c4GoccIenAFvSDFfpdWZ_FqGknt0h97DIflyK3EqKLa3YwHbWO45mg_OytKq4W-73rIg"
    },{
      "algorithm": "RS256",
      "keyId": "example.com:r2048",
      "otherExt": "Other Data",
      "value": "CzaRfxTFWn_aKiMasqPChd9mX88HxsA-cfN_NW1c7k91dlzPlcmyg_UQMCrdRjhjTO0NRbAUVdqvgRqQJpei71-24VMkb
UxC3LVzswnxAtM3aaiGIJgvbC7Xj_DbX8g5ayJ1BfxMW2iZVyghUQN2M-dt8t7ug6GLAEPqx7Rbvch72mznwrZuK94vrgxc0BEDtoCZvvFoXe
v6QhasqNdzuvlRQEiaasdtBs83iJ1hDR5HasRIzkhftX60EU_3dT-_v_y7FmohBADerx3N1qLGrbjPpCYgh4pSclyP24qHwQvBYX3dtnelDDq
368J8IQ7pDLx9rlXJBNZLPyzLPrEQyA"
    }],
    "extensions": ["otherExt", "https://example.com/extension"]
  }
}
rootca.pem
The certificate based signatures share a common root (here supplied in PEM [RFC7468] format), which can be used for path validation:
-----BEGIN CERTIFICATE-----
MIIFDDCCAvSgAwIBAgIBATANBgkqhkiG9w0BAQ0FADAXMRUwEwYDVQQDEwxUZXN0IFJvb3QgQ0Ew
HhcNMTUwNzEwMTAwMDAwWhcNNDAwNzEwMDk1OTU5WjAXMRUwEwYDVQQDEwxUZXN0IFJvb3QgQ0Ew
ggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDLLlZKOsv1XsTw8brUyqZTue8bym6ELH0y
SUmsYb7xwwlp1KjHT0LLidEeDWA6uDy3D6/4vSkOIcQ4LnR5dDHInxFEFk8sx1eFR5xDsLMPN76K
rfGFQ3h1d366R56Qi0SL6ssrrYWGec4ey7m2qyzEvgYW1ZYXucyvEbAJtxljx3000uo6rOmVkV4N
83IfTvA8JqXHvpqluNRvtCJ1zXF7pKJXO3hN1fpL/AoWk6ApuW+q37MZpZqKuHDOlM/KdULjKhyh
YQ6zfsd8oif3FeWfkYrYU2Lh62gej6Jpd5PrD1dqZ25dEQFqWXtj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Grs3Sc3VEqXadfw9sJhzapSCF14vh3y
ogXC6uTAL/ziJ2ilzfLlU/YTrZBSWQfgIFDlow1gqeTuZXgOGuMLLbHr40Ydc9gELbKxczPTC2sz
+Xr+zNuVNEvUuvuM0S+yVXJAog+wvhksymVf4NGUkZK3psV9y7fPhdXp
-----END CERTIFICATE-----
Appendix B: ECMAScript Mode
ECMAScript mode in this context refers to the ability to sign JavaScript objects as well as using the standard JSON support for parsing and creating signed data.
The code snippet below shows a signed JavaScript object:
var signedObject = {
  // Data to be signed
  statement: "Hello Signed World!",
  otherProperties: [2000, true],
  // Signature
  signature: {
    algorithm: "ES256",
    publicKey: {
      kty: "EC",
      crv: "P-256",
      x: "6BKxpty8cI-exDzCkh-goU6dXq3MbcY0cd1LaAxiNrU",
      y: "mCbcvUzm44j3Lt2b5BPyQloQ91tf2D2V-gzeUxWaUdg"
    },
    value: "2Pwi7afWDaVN2bJIvOSNbEOucAwJQ1sgFQ_GKxk-VoQeHqmZWrJUmr8uW_uspQ5WhqqXeEO3vcMACzQuJBMVKQ"
  }
};
Due to the fact that the JSON.stringify() method converts JavaScript objects like above into JSON-compliant strings no special considerations are required for JavaScript.
Appendix C: Counter Signatures
For counter signatures there are several different solutions where Signature Chains is the most straightforward.
Another way dealing with counter signatures is using an application level counter signing solution like the following:
{
  "id": "lADU_sO067Wlgoo52-9L",
  "object": {"type": "house", "price": "$635,000"},
  "role": "buyer",
  "timeStamp": "2019-03-08T13:56:08Z",
  "signature": {
    
Original signature...
  }
}
Counter signed JSON object:
{
  "attesting": {
    "id": "lADU_sO067Wlgoo52-9L",
    "object": {"type": "house", "price": "$635,000"},
    "role": "buyer",
    "timeStamp": "2019-03-08T13:56:08Z",
    "signature": {
      
Original signature...
    }
  },
  "role": "notary",
  "timeStamp": "2019-12-08T13:58:42Z",
  "signature": {
    
Counter signature...
  }
}
For sophisticated peer based counter signature schemes another possibility is using Multiple Signatures, optionally including JSF extensions holding application specific (per signature) metadata.
Appendix D: Usage in Applications
JSF is a core element in a proof-of-concept application [PKIDROID] running on Android.
The sample code below is based on the Java reference implementation [OPENKEY] which features an integrated JSON encoder, decoder and signature solution:
public void signAndVerifyJsf(PrivateKey privateKey, PublicKey publicKey) throws IOException {

  // Create an empty JSON document
  JSONObjectWriter writer = new JSONObjectWriter();

  // Fill it with some data
  writer.setString("myProperty", "Some data");

  // Sign document
  writer.setSignature(new JSONAsymKeySigner(privateKey, publicKey, null));

  // Serialize document
  String json = writer.toString();

  // Print document on the console
  System.out.println("Signed doc: " + json);

  // Parse document
  JSONObjectReader reader = JSONParser.parse(json);

  // Get and verify signature
  JSONSignatureDecoder signature = reader.getSignature(new JSONCryptoHelper.Options());
  signature.verify(new JSONAsymKeyVerifier(publicKey));

  // Print document payload on the console
  System.out.println("Returned data: " + reader.getString("myProperty"));
}
Appendix E: Acknowledgements
During the initial phases of the design process, highly appreciated feedback were provided by Manu Sporny, Jim Klo, Jeffrey Walton, David Chadwick, Jim Schaad, Mike Jones, David Waite, Douglas Crockford, Arne Riiber, Brian Campbell, Sergey Beryozkin, and others.
Special thanks go to James Manger who pointed out the ECMAScript [ES] number serialization scheme as well as reviewing a related Internet draft.
An early prototype was funded by PrimeKey Solutions AB and the Swedish Innovation Board (VINNOVA).
Appendix F: References
ReferenceDescription
[ES]B. Terlson, B. Farias, J. Harband, "ECMAScript 2019 Language Specification", ECMA-262, June 2019.
http://ecma-international.org/ecma-262/10.0/
[JEF]A. Rundgren, "JEF - JSON Encryption Format", Work in progress, V0.62, October 2020. https://cyberphone.github.io/doc/security/jef.html
[OPENKEY]"OpenKeyStore Project", https://github.com/cyberphone/openkeystore
[PKIDROID]"WebPKI Suite", https://play.google.com/store/apps/details?id=org.webpki.mobile.android
[RFC4648]S. Josefsson, "The Base16, Base32, and Base64 Data Encodings", RFC 4648, October 2006. https://tools.ietf.org/html/rfc4648
[RFC5280]D. Cooper, S. Santesson, S. Farrell, S. Boeyen, R. Housley, W. Polk, "Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile", RFC 5280, May 2008. https://tools.ietf.org/html/rfc5280
[RFC7468]S. Josefsson, S. Leonard, "Textual Encodings of PKIX, PKCS, and CMS Structures", RFC 7468, April 2015. https://tools.ietf.org/html/rfc7468
[RFC7493]T. Bray, "The I-JSON Message Format", RFC 7493, March 2015. https://tools.ietf.org/html/rfc7493
[RFC7515]M. Jones, J. Bradley, N. Sakimura, "JSON Web Signature (JWS)", RFC 7515, May 2015. https://tools.ietf.org/html/rfc7515
[RFC7517]M. Jones, "JSON Web Key (JWK)", RFC 7517, May 2015. https://tools.ietf.org/html/rfc7517
[RFC7518]M. Jones, "JSON Web Algorithms (JWA)", RFC 7518, May 2015. https://tools.ietf.org/html/rfc7518
[RFC8037]I. Liusvaara, "CFRG Elliptic Curve Diffie-Hellman (ECDH) and Signatures in JSON Object Signing and Encryption", RFC 8037, January 2017. https://tools.ietf.org/html/rfc8037
[RFC8259]T. Bray, "The JavaScript Object Notation (JSON) Data Interchange Format", RFC 8259, December 2017. https://tools.ietf.org/html/rfc8259
[RFC8785]A. Rundgren, B. Jordan, S. Erdtman, "JCS - JSON Canonicalization Scheme", RFC 8785, June 2020. https://tools.ietf.org/html/rfc8785
[XMLDSIG]D. Eastlake, J. Reagle, D. Solo, F. Hirsch, M. Nystrom, T. Roessler, K. Yiu, "XML Signature Syntax and Processing Version 1.1.", W3C Recommendation, April 2013.
https://www.w3.org/TR/2013/REC-xmldsig-core1-20130411/
[YASMIN]A. Rundgren, "YASMIN - Yet Another jSon Message notatIoN", Work in progress, V0.61, February 2020. https://cyberphone.github.io/doc/web/yasmin.html
Appendix G: Document History
DateVerComment
2013-12-170.3Initial publication in HTML5
2013-12-200.4Changed from Base64 to Base64URL everywhere
2013-12-290.5Added the (now obsoleted) extension facility
2014-01-210.51Added clarification to public key parameter representation
2014-01-260.52Added note regarding the (now obsoleted) signerCertificate option
2014-04-150.53Embedded (the now obsoleted) bigint in JS string
2014-09-170.54Changed (now obsoleted) canonicalization to normalization
2014-09-230.55Aligned EC parameter representation with JWS [RFC7515]
2014-12-080.56Removed [XMLDSIG] bloat and added support for JWA [RFC7515] algorithm identifiers
2014-12-190.57Added an interoperability section
2015-01-120.58Added clarification to signature value representation
2016-01-110.59Added ECMAScript compatibility mode
2017-04-190.60Changed public keys to use JWK [RFC7517] format
2017-05-180.70Added multiple signatures and test vectors
2019-03-050.80Rewritten to use the JSON Canonicalization Scheme [RFC8785]
2019-10-120.81Added signature chains (chain)
2020-10-100.82Added support for RFC8037 [RFC8037] algorithms
Appendix H: Author
JSF was developed by Anders Rundgren (anders.rundgren.net@gmail.com) as a part of the OpenKeyStore project [OPENKEY].