Internet Engineering Task Force | P. M. Hallam-Baker |
Internet-Draft | Comodo Group Inc. |
Intended status: Standards Track | July 05, 2013 |
Expires: January 06, 2014 |
JSON Service Connect (JCX) Protocol
draft-hallambaker-wsconnect-03
JSON Service Connect (JCX) is a JSON/REST Web Service that may be used to establish and maintain a 'connection binding' of a device to an account held with a Web Service Provider. Multiple connection bindings may be established under the same account to support multiple devices and/or multiple users of a single device. A connection binding permits a device to securely connect to one or more services offered by the Web Service Provider with support for protocol and protocol version agilty and fault tollerance.
The protocol is presented as a HTTP/JSON Web Service and uses the HTTP session continuation mechanism for authentication of transaction messages and supports negotiation of a HTTP session continuation mechanism context for the established endpoint connections.
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at http://datatracker.ietf.org/drafts/current/.
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."
This Internet-Draft will expire on January 06, 2014.
Copyright (c) 2013 IETF Trust and the persons identified as the document authors. All rights reserved.
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (http://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Simplified BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified BSD License.
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in [RFC2119].
JSON Service Connect (JCX) is a Web Service that may be used to establish and maintain a 'connection binding' of a device to an account held with a Web Service Provider (WSP).
JCX is presented in JSON encoding [RFC4627] over a HTTP Session [RFC2616] using HTTP Session Continuation [I-D.hallambaker-httpsession] for message layer authentication and TLS transport for confidentiality and server authentication.[RFC4627]
A Connection Binding comprises a set of long term credentials used to authenticate interactions with the JCX service itself and a set of 'Service Connections' to specific services offered by the Web Service Provider.
Each service connection in turn comprises a collection of 'Instance Connections' which describe a specific instances of the Web Service.
For example Alice is a consumer and example.com a provider of a range of Web Services including anti-malware protection and management of home automation devices. Alice has 42 devices of different types that each make use of one or more of the Web Services proviced by example.com. All the devices are enrolled in the same JCX account 'alice@example.com' but each device has a unique connection binding and different devices make use of different Web Services.
The centralized account provides Alice with a single point of control from which she can authorize the addition of new devices to the account or the removal of devices that are deactivated. This allows Alice to avoid the need to manage a device such as a network-enabled lightswitch through the lightswitch itself.
To ensure continuity of service in case of network failure or administration work, example.com provides multiple instances of its Web Services hosted on different machines. Different users MAY be granted access to a different collection of service instances according to their needs and the service tier they are subscribed to.
The means by which the Web Service Provider Account is established is outside the scope of this document.
In a typical case the user would establish an account with their chosen Web Service Provider through the normal process of using a Web Browser to access the Web Service Provider's site and entering such data as the Web Service Provider requires into a HTML form.
Depending on the circumstances, the data provided by the applicant may require verification before the account is created.
[Default accounts for appliances that are going to be implicitly authenticated by reference to the network they are on.]
A connection binding represents a long term association between a device and an account at the Web Service Provider. The association includes the establishment of an authentication context between the device and the JCX service.
An authentication context consists of:
The context identifier is an opaque string assigned by the JCX service. Following the approach introduced in Kerberos, a JCX service MAY eliminate the need to store authentication context information by encoding the authentication algorithm and encrypted secret key in the context identifier.
The authentication context can ensure that future communications are secured against impersonation if and only if the original process of establishing a connection binding was secured against communication. Mutual authentication is therefore an essential requirement.
The means by which the connection binding is established depend on the affordances of the device in question. Establishing a connection binding to a device with a keyboard is easily accomplished through use of a one-time PIN code. But many embedded devices do not provide a keyboard or similar affordance.
The following modes of session establishement are supported:
To establish a connection binding for a new mobile phone, Alice logs into her JCX account manager and requests a new PIN code. She then starts the application that makes use of a JCX account and selects 'create new binding'. She is prompted for and enters her account name (alice@example.com) and PIN.
The client connects to the JCX service and verifies that the TLS certificate presented is correct for example.com and has been issued in accordance with issue practices that ensure an appropriately high degree of trust (e.g. the CABForum Extended Validation requirements).
To establish a connection binding for her new toaster oven, Alice plugs the appliance into her local network and enters her account name into the device. Since she has not obtained a PIN code in advance, she leaves the entry blank.
To complete the process, Alice logs into her JCX account where she sees that a new device is available to add to the account. To help identify the correct device, there is a picture of the toaster oven, the model name and serial number.
Alice decides to remodel the kitchen completely and plans to install a dozen new network enabled LED light fixtures. Using an application on the mobile phone she enabled earlier, Alice scans a QR code attached to each fixture before the devices are installed. When the fixtures are installed and powered, the connection binding is preauthorized.
Alice buys a new laptop computer which she wishes to use with the malware protection service provided by example.com. Alice has an existing account 'alice' with this Web Service Provider and obtains a pin code Q80370-1RA606-F04B from the Web Service Provider Web site.
Alice enters the values alice@example.com and Q80370-1RA606-F04B into the Web Service client she wishes to use with the Web Service Provider on the new laptop.
The client obtains the JCX service for example.com using DNS SRV discovery. The client establishes a TLS connection to the service and verifies that the certificate provided has a valid certificate path, has not been revoked and meets the validation criteria of the client. Since the purpose of this particular Web Service client is to provide security, the client requires that an Extended Validation certificate be presented.
Having established a TLS connection to the JCX Service, the client sends the following HTTP request:
POST /.well-known/OmniConnect/ HTTP/1.1 Content-Type: application/json;charset=UTF-8 Cache-Control: no-store Host: localhost Content-Length: 310 Expect: 100-continue Connection: Keep-Alive { "OpenPINRequest": { "Encryption": ["A128CBC", "A256CBC", "A128GCM", "A256GCM"], "Authentication": ["HS256", "HS384", "HS512", "HS256T128"], "Account": "alice", "Domain": "example.com", "HaveDisplay": false, "Challenge": "hdHZcc9U4WlNK6QBrCQL6Q"}}
To prevent man in the middle attack, the client does not send the PIN code in the initial request. The PIN code is only sent after the service responds with a challenge nonce to be used to prevent replay attack.
The service receives the request, determines that is meets its access control policy and selects a set of cryptographic parameters from the set proposed by the client. In this case the service prefers the use of AES128CBC for encryption and the HS256 Message Authentication Code for authentication.
The service determines that a PIN code has been issued for the account and uses the value of that PIN to generate a response to the challenge presented by the client. A new challenge is generated to test the client knowledge of the PIN.
[TBS: Is there a need for the service to be able to support multiple outstanding PIN codes for the same account? This could be supported by providing the last 2 significant characters of the PIN code to the service which could use it as an index. This would enable several hundred simultaneous outstanding requests which should be enough for most applications. Large volume applications would need to use a different scheme.]
The service sends the following response to the client:
HTTP/1.1 NonAuthoritativeInformation Passcode Content-Length: 496 Date: Fri, 05 Jul 2013 04:58:00 GMT Server: Microsoft-HTTPAPI/2.0 { "OpenPINResponse": { "Status": 203, "StatusDescription": "Passcode", "Challenge": "_uJhiq95vmKG7SaW7Ah_zA", "ChallengeResponse": "oZSvuHZa4ExVAkUGPJKcQ90GDgbj6COK8uDjTV9jAgs", "Cryptographic": { "Secret": "KPfQGMiWTSTnGXFKSvACyQ", "Encryption": "A128CBC", "Authentication": "HS256", "Ticket": "5ygZmB3NdFbWi5shZkIRz7dvS6_x4zJxfnoSGsMDysCbbHdfw7Y_mR9Pfz fP4nTymYXdiAeVGiCHo9p0PdbmcP_Nzq22c0XBfFBgC17Z3Eve6haB6lew6 MToUCTjQutnRxcnPxEa9-B3qbTspnzYHQ"}}}
To complete the transaction, the client sends a TicketRequest message to the service containing a response to the PIN challenge sent by the service (ChallengeResponse).
The TicketRequest message is authenticated using HTTP Session authentication under the shared secret specified in the OpenResponse message:
POST /.well-known/OmniConnect/ HTTP/1.1 Content-Type: application/json;charset=UTF-8 Cache-Control: no-store Session: Value=DCCJrGjvzb2_s6kB2qZ0Wo0yMGH2_8cpateaPlqRNXs; Id=5ygZmB3NdFbWi5shZkIRz7dvS6_x4zJxfnoSGsMDysCbbHdfw7Y_mR9PfzfP 4nTymYXdiAeVGiCHo9p0PdbmcP_Nzq22c0XBfFBgC17Z3Eve6haB6lew6MToUCT jQutnRxcnPxEa9-B3qbTspnzYHQ Host: localhost Content-Length: 95 Expect: 100-continue { "TicketRequest": { "ChallengeResponse": "DYT4pPAJikLTHvhWKkXvjCFEhFKue71ICfBpse6ISJ0"}}
The service checks the value of ChallengeResponse against the known PIN and if the result is correct establishes parameters for the Connection Binding for the device.
In this case the server uses the Session Id parameter to encode permissions associated with the request as described in [Appendix TBS]. Accordingly the server must replace the Session Id whenever the associated permissions change. Accordingly, the server replaces the cryptographic parameters specified in the OpenResponse request for use in future JCX service requests. In this case the server returns three connections, each offering a different transport protocol option. Each connection specifies its own set of cryptographic parameters (or will when the code is written for that).
The service also returns a service connection the malware protection service the client requested access to. This service connection specifies three different service instances. Each service instance has its own set of cryptographic parameters for use with HTTP session authentication. In this case the three different service instances offer different means of accessing the same service: as a JSON Web Service over HTTP, using a binary encoding over a UDP transport and tunnelling via DNS.
HTTP/1.1 OK Complete Content-Length: 813 Date: Fri, 05 Jul 2013 04:58:00 GMT Server: Microsoft-HTTPAPI/2.0 { "TicketResponse": { "Status": 200, "StatusDescription": "Complete", "Cryptographic": [{ "Protocol": "OBPConnection", "Secret": "wn9EmkGM8cRIBFJNWczjcw", "Encryption": "A128CBC", "Authentication": "HS256", "Ticket": "FtkoQxbwZ1smnd2MMKG5f8RPNwfHhBtdpLbR9sqo0_DDqIq9Ng3n7CdY vAvMX67wKQDQWPwqwnMKGqn18cbnnlFUk4_CeI3f-ymCgyq7cVM"}], "Service": [{ "Port": 0, "Priority": 0, "Weight": 0, "Transport": "WebService", "Cryptographic": { "Protocol": "OBPQuery", "Secret": "pIJOa3BpAJTI_JCl1snWQw", "Encryption": "A128CBC", "Authentication": "HS256", "Ticket": "pDtAQnl5tjPzS5r0JiuOL0pC9zlhJwdyKQCyfZPtIfnWFM8Ok5Tv07 4Kt8bnq7DWBJVGnyqHtvJHBKIhT1t1hbTlN1So9w8Q3IEkLGEqWtU"} }]}}
After a year of use, Alice decides to replace the laptop with a new one. Before selling the old laptop on EBay, she tells the Web Service client to cancel the connection to the Web Service Provider.
The client sends the following mesasage to the provider:
POST /.well-known/OmniConnect/ HTTP/1.1 Content-Type: application/json;charset=UTF-8 Cache-Control: no-store Session: Value=2zJzH8J7EWprXoEPtPB1W8T9QFKhiYOqseWQoAHT8fQ; Id=5ygZmB3NdFbWi5shZkIRz7dvS6_x4zJxfnoSGsMDysCbbHdfw7Y_mR9PfzfP 4nTymYXdiAeVGiCHo9p0PdbmcP_Nzq22c0XBfFBgC17Z3Eve6haB6lew6MToUCT jQutnRxcnPxEa9-B3qbTspnzYHQ Host: localhost Content-Length: 24 Expect: 100-continue { "UnbindRequest": {}}
The Session ID specifies the connection binding. Since the Unbind Request is only valid for that connection binding, there is no need to specify the connection binding further in the request.
The server verifies that the request was authenticated and returns a successful response:
HTTP/1.1 OK Unbound Content-Length: 79 Date: Fri, 05 Jul 2013 04:58:00 GMT Server: Microsoft-HTTPAPI/2.0 { "UnbindResponse": { "Status": 200, "StatusDescription": "Unbound"}}
[TBS: Add in the status response back into the JSON message. ]
Alice purchases an Internet enabled coffee pot. The installer configures the coffee pot in her kitchen but does not have access to Alice's JCX account or a PIN code to configure it.
The installer configures the coffee pot to use the JCX account specified by Alice. The coffee pot does not have a pssscode to enter but does have a link to an image of the coffee pot.
The client sends the following request:
[TBS: non pin code example]
Since the client does not have a PIN code, there is no need to return a challenge. Instead the service returns the status "OOB" to indicate that the transaction will be completed out of band.
[TBS: non pin code example]
By default the coffee pot attempts to complete the JCX connection at ten second intervals for the first ten minutes, every thirty seconds for the next hour, every five minutes for the following 24 hours and once an hour thereafter.
The client sends the following request to check the status of the request:
[TBS: should add in a parameter 'don't call again for x seconds']
The first service response tells the coffee pot not to ask again until five minutes have elapsed:
[TBS: non pin code example]
The installer calls Alice to tell her that the coffee pot is ready to connect. Alice authorizes the connection remotely via the Web Service Provider's Web site. Alice identifies the request to connect the coffee pot by means of the image provided. She can also use the same image to help determine which connection to cancel when the coffee pot is replaced.
The next time the coffee pot requests a status update, the service responds with the connection binding parameters:
[TBS: non pin code example]
An error response MAY be returned in response to any request.
Note that requests MAY be rejected by the code implementing the transport binding before application processing begins and so a server is not guaranteed to provide an error response message.
Parameters describing a cryptographic context.
Contains information describing a network connection.
Binding a device is a two step protocol that begins with the Start Query followed by a sequence of Ticket queries.
The following parameters MAY occur in either a StartRequest or TicketRequest:
The following parameters MAY occur in either a StartResponse or TicketResponse:
The OpenRequest Message is used to begin a device binding transaction. Depending on the authentication requirements of the service the transaction may be completed in a single query or require a further Ticket Query to complete.
If authentication is required, the mechanism to be used depends on the capabilities of the device, the requirements of the broker and the existing relationship between the user and the broker.
If the device supports some means of data entry, authentication MAY be achieved by entering a passcode previously delivered out of band into the device.
The OpenRequest specifies the properties of the service (Account, Domain) and Device (ID, URI, Name) that will remain constant throughout the period that the device binding is active and parameters to be used for the mutual authentication protocol.
An Open request MAY be accepted immediately or be held pending completion of an inband or out-of-band authentication process.
The OpenResponse returns a ticket and a set of cryptographic connection parameters in either case. If the
The TicketRequest message is used to (1) complete a binding request begun with an OpenRequest and (2) to refresh ticket or connection parameters as necessary.
The TicketResponse message returns cryptographic and/or connection context information to a client.
Requests that a previous device association be deleted.
Since the ticket identifies the binding to be deleted, the only thing that the unbind message need specify is that the device wishes to cancel the binding.
Reports on the success of the unbinding operation.
If the server reports success, the client SHOULD delete the ticket and all information relating to the binding.
A service MAY continue to accept a ticket after an unbind request has been granted but MUST NOT accept such a ticket for a bind request.
A Connection Service MAY require that a connection request be authenticated. Two authentication mechanisms are defined.
In addition, services MAY accept the use of any message or transport layer authentication scheme. For example HTTP Session Continuation or Transport Layer Security with client authentication.
PIN code authentication provides users with a simple and often familiar mechanism for authenticating the connection request. The means by which the user obtains the PIN code is outside the scope of this document. Possible methods for distributing the PIN code include obtaining the code from an account management Web site provided by the Web Service Provider, letter post, email and in person.
Although the PIN value is never exposed on the wire in any form, the protcol considers the PIN value to be text encoded in UTF8 encoding.
To encourage readability, the use of space (0x20) and hyphen (0x2D) characters to arrange PIN characters into groups of four to seven characters is encouraged. To avoid the risk of this practice introducing user error, space and hyphen characters are ignored when processing the PIN value.
Support for the full UNICODE character set in PIN codes is intended to facilitate provision of PIN codes in the user's native language. Web Service Providers MAY make use of any UNICODE characters they choose but capricious choices are likely to cause users difficulty. For example a PIN code MAY contain the ZAPF Dingbats thick tick mark (U+2704) but users would almost certainly find it difficult to enter and may confuse it with the similar thin tick mark (U+2703).
Servers that support PIN Authorization SHOULD offer the choice of a PIN that only uses numeric digits ('0', '1', '2', '3', '4', '5', '6', '7', '8', '9'). Clients that support PIN Authorization MUST allow entry of PINS that only contain numeric digits.
The PIN Mechanism is a three step process:
Since no prior authentication key has been established the OpenRequest and OpenResponse messages are sent without message authentication.
The Challenge values CC, and SC are cryptographic nonces. The nonces SHOULD be generated using an appropriate cryptographic random source. The nonces MUST be at least as long as 128 bits, MUST be at least the minimum key size of the authentication algorithm used and MUST NOT more than 640 bits in length (640 bits should be enough for anybody).
The server response and client response values are generated using an authentication algorithm selected by the server from the choices proposed by the client in the OpenRequest message.
The algorithn chosen may be a MAC algorithm or an encrypt-with-authentication (EWA) algorithm. If an EWA is specified, the encrypted data is discarded and only the authentication value is used in its place.
Let A(d,k) be the authentication value obtained by applying the authentication algorithm with key k to data d.
To create the Server Response value, the UTF8 encoding of the PIN value 'P' is first pre-processed to remove space and hyphen characters, then converted into a symmetric key KPC by using the Client challenge value as the key truncating if necessary and then applied to the of the OpenRequest message:
KPC = A (PIN, CC) SR = A (Secret + OpenRequest, KPC)
In the Web Service Binding, the Payload of the message is the HTTP Body as presented on the wire. The Secret and Server Challenge are presented in their binary format and the '+' operator stands for simple concatenation of the binary sequences.
This protocol construction ensures that the party constructing SR:
To create the Client Response value, secret key is applied to the PIN value and server Challenge:
CR = A (PIN + SC + OpenResponse, Secret)
Note that the server can calculate the value of the Client Response token at the time that it generates the Server Challenge. This minimizes the amount of state that needs to be carried from one request to the next in the Ticket value when using the stateless server implementation described in section Appendix A
This protocol construction ensures that the generator of CR
Note that while disclosure of an oracle for the PIN value is a concern in the construction of CR, this is not the case in the construction of SR since the client has already demonstrated knowledge of the PIN value.
The Connection Request example of section Section 3 demonstrates the use of an alphanumeric PIN code using the Latin alphabet.
The PIN code is [Q80370-1RA606-F04B] and the authentication algorithm is [HS256]. The value KPC is calculated thus:
PIN: 51 38 30 33 37 30 2d 31 52 41 36 30 36 2d 46 30 34 42
Client Challenge: 85 d1 d9 71 cf 54 e1 69 4d 2b a4 01 ac 24 0b e9
KPC: b1 c0 27 a3 e1 5e 56 a4 17 be 56 99 0b 04 df b6 90 67 59 2e c3 09 bf 91 16 02 85 df d6 99 4a 8a
For the sake of example, we take the OpenRequest message payload to be {...}. The data over which the hash value is calulated is Secret + OpenRequest:
Secret: 28 f7 d0 18 c8 96 4d 24 e7 19 71 4a 4a f0 02 c9
Request Payload: 7b 2e 2e 2e 7d
Server Response: f5 ed ec 13 f5 3f f7 9a 6e 14 32 a6 1a a8 ad b9 08 f0 97 ee 79 2a 1d 1b d6 b6 6b 57 14 16 01 a8
The data for the client response is PIN + Server Challenge + Payload:
PIN: 51 38 30 33 37 30 2d 31 52 41 36 30 36 2d 46 30 34 42
Server Challenge: fe e2 61 8a af 79 be 62 86 ed 26 96 ec 08 7f cc
Request Payload: 7b 2e 2e 2e 7d
Applying the key Secret to the data produces the client response:
Client Response: 95 5c 64 cd 2c ab 67 c6 36 00 41 65 e6 df 70 a3 c2 10 56 d8 10 56 5a 34 4e 74 0c 8f a9 f2 cb 43
If the PIN code in the earlier example was 'parol1' (the Russian for 'password1') in Cyrilic script the value KP would be calculated as follows
PIN: d0 bf d0 b0 d1 80 d0 be d0 bb d1 8c 31
KPC: b1 c0 27 a3 e1 5e 56 a4 17 be 56 99 0b 04 df b6 90 67 59 2e c3 09 bf 91 16 02 85 df d6 99 4a 8a
The rest of the protocol would then continue as before.
The Out Of Band Confirmation mechanism is a three step process in which:
Since no prior authentication key has been established the OpenRequest and OpenResponse messages are sent without authentication.
The principal concern in the Out Of Band Confirmation mechanism is ensuring that the party authorizing the request is able to identify which party originated the request they are attempting to identify.
If a device has the ability to display an image it MAY set the HasDisplay=true in the OpenRequest message. If the broker recieves an OpenRequest with the HasDisplay value set to true, the OpenResponse MAY contain one or more VerificationImage entries specifying image data that is to be displayed to the user by both the client and the confirmation interface.
Before confirming the request, the user SHOULD verify that the two images are the same and reject the request in the case that they are not.
Many devices do not have a display capability, in particular an embedded device such as a network switch or a thermostat. In this case the device MAY be identified by means of the information provided in DeviceID, DeviceURI, DeviceImage and DeviceName.
A single protocol binding is defined:
Implementations MAY support use of alternative encodings, session layers or transports provided that the necessary confidentiality and authentication criteria described below are met. The means by which negotiation of the use of such encodings is achieved is outside the scop of this document.
Messages are expressed in JSON encoding [RFC4627].
Protocol schema types are mapped to JSON encoding as follows:
Messages are presented over a HTTP session layer [RFC2616]. The use of HTTP as a session layer permits multiple Web Services on the same host to share the same DNS name, IP address and port number and enables use of HTTP Session Continuation [I-D.hallambaker-httpsession] for message authentication.
Use of HTTP Session Continuation mechanism allows message authentication data to be presented in the HTTP message header rather than the message content provides a clean separation of the message authentication data from the data being authenticated. The scope of the authentication data is simply the message content after transport encoding (e.g. chunked) has been removed.
The use of HTTP session continuation is necessary to achieve mutual authentication even though TLS transport is required.
Only the HTTP Session header is used. The negotiation of the Session parameters is performed within JCX.
[TO-DO: Specify TLS binding options?]
[TO-DO: Switch back from using JOSE algorithm names to HTTP Session algorithm names]
TLS transport [RFC4627] is used
Support for the PKIX logotype extension [RFC3709] is highly recommended
Use of an enhanced assurance certificate (e.g. CABForum EV) is likely to be required in most applications and is strongly recommended if Lotypes are used.
The prefix '[PREFIX-TBD]' has been registered for use as a protocol identifier for JCX in the URI, SRV and Well Known Location registries.
The URI form identifying a JCX account identifier is:
PREFIX-TBD:<service>:<account>:< or PREFIX-TBD:<service>:<account>:<:subaccount>
Where <service> is the DNS name of the Web Service Provider, <account> is the name of the account at the service provider and <subaccount> is an optional sub-account specifier.
Use of the URI form is only needed in cases where the purpose of the identifier is not clear from the context, in a HTML anchor for example. A JCX client requesting entry of the service account identifier MUST support entry of the short form identifier:
<account>@<service> or <:subaccount>/<account>@<service>
DNS Service (SRV) record discovery is the preferred method of host discovery as this provides for fault tollerance and load balancing.
JCX clients SHOULD support use of DNS SRV records for host discovery and MUST support use of DNS A/AAAA records for host discovery.
A compliant JCX service MUST be offered at the .well-known location /.well-known/PREFIX-TBD. Use of JCX protocol at other service locations is permissible for testing and protocol development purposes but such configurations are not compliant and clients are not required to support them. The URL for the JCX service is therefore:
https://<service>/.well-known/PREFIX-TBD
[List of contributors]
[TBS list out all the code points that require an IANA registration]
[RFC3709] | Santesson, S., Housley, R. and T. Freeman, "Internet X.509 Public Key Infrastructure: Logotypes in X.509 Certificates", RFC 3709, February 2004. |
The protocol is designed to permit but not require the server to store connection binding state in the Session ID of the HTTP Session Continuation authentication mechanism.
The Session IDs are opaque as far as the client is concerned. The client receives the Session ID from the service and returns it with each request. The internal structure of the Session ID is therefore outside the scope of this specification but is provided here to assist implementers.
In the PIN Authentication example, two SessionIDs are issued by the server:
Both tickets have the same common wrapper structure:
IV + Encrypt ( Ticket + Mac ( Ticket, Key) Key)
Where
The temporary ticket returned in the OpenRequest example above is represented in Base64URL encoding as follows:
5ygZmB3NdFbWi5shZkIRz7dvS6_x4zJxfnoSGsMDysCbbHdfw7Y_mR9PfzfP4nTym YXdiAeVGiCHo9p0PdbmcP_Nzq22c0XBfFBgC17Z3Eve6haB6lew6MToUCTjQutn RxcnPxEa9-B3qbTspnzYHQ
The format of the ticket is 16
IV: e7 28 19 98 1d cd 74 56 d6 8b 9b 21 66 42 11 cf
Encrypted Data: b7 6f 4b af f1 e3 32 71 7e 7a 12 1a c3 03 ca c0 9b 6c 77 5f c3 b6 3f 99 1f 4f 7f 37 cf e2 74 f2 99 85 dd 88 07 95 1a 20 87 a3 da 74 3d d6 e6 70 ff cd ce ad b6 73 45 c1 7c 50 60 0b 5e d9 dc 4b de ea 16 81 ea 57 b0 e8 c4 e8 50 24 e3 42 eb 67 47 17 27 3f 11 1a f7 e0 77 a9 b4 ec a6 7c d8 1d
The encrypted data is decrypted under the master key of the server. In this example the server has a single fixed key that does not change over time. There should really be a key index prefixing it to identify the key number.
The Master Key is: f1 b6 e9 9a 10 97 af 6a 98 eb 36 c4 9f 12 4e ec
The decrypted data contains the algorithm identifiers, shared secret and message authentication code:
Version Number: 00
Key Identifier: 01
Authentication Algorithm: 00
Encryption Algorithm: 00
Key Data: 28 f7 d0 18 c8 96 4d 24 e7 19 71 4a 4a f0 02 c9
User Name Length: 11
User Name: 61 6c 69 63 65 40 65 78 61 6d 70 6c 65 2e 63 6f 6d
Client Challenge Length: 10
Client Challenge: 85 d1 d9 71 cf 54 e1 69 4d 2b a4 01 ac 24 0b e9
Server Challenge Length: 10
Server Challenge: fe e2 61 8a af 79 be 62 86 ed 26 96 ec 08 7f cc
Message Authentication Code: 81 16 da 05 10 cd 72 3e f2 79 3a a8 2b c7 f6 55 97 7d 6d be 87 6f 3d b8 0b e9 ba a4 77 b3 a4 22
The format of the Connection binding ticket is similar to that of the Temporary ticket except that it does not contain the Client or Server challenge nonces.
IV: 16 d9 28 43 16 f0 67 5b 26 9d dd 8c 30 a1 b9 7f
Encrypted Data: c4 4f 37 07 c7 84 1b 5d a4 b6 d1 f6 ca a8 d3 f0 c3 a8 8a bd 36 0d e7 ec 27 58 bc 0b cc 5f ae f0 29 00 d0 58 fc 2a c2 73 0a 1a a9 f5 f1 c6 e7 9e 51 54 93 8f c2 78 8d df fb 29 82 83 2a bb 71 53
The decrypted data is:
Version Number: 00
Key Identifier: 00
Authentication Algorithm: 00
Encryption Algorithm: 00
Key Data: c2 7f 44 9a 41 8c f1 c4 48 04 52 4d 59 cc e3 73
User Name Length: 0c
User Name: 65 40 65 78 61 6d 70 6c 65 2e 63 40
Message Authentication Code: ed 62 c8 e3 96 de bc 0c 6d 8e 69 b5 71 33 05 eb 37 77 5e 48 f9 de 1e c9 a2 60 8b 16 12 1c 7e 0a