From 65f8f7f747d02c78643036667076fb90e405f51d Mon Sep 17 00:00:00 2001 From: Mrt134 Date: Wed, 25 May 2016 10:22:31 -0400 Subject: [PATCH] Added initial examples of client-bridge-server ssl authentication to api handbook (api/connection.rst) - added #4 to section 1.1 Authentication: SSL Certificate Initiation - provided examples of an initial request and reply - added notation to identify at which point messages become encrypted --- api/connection.rst | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/api/connection.rst b/api/connection.rst index 1e0c367..15077fa 100644 --- a/api/connection.rst +++ b/api/connection.rst @@ -173,6 +173,42 @@ To clear a pre-saved authentication token, such as signing out, use this request "args" : "junk argument" } + + +**4. SSL Certificate Client Initiation (client authentication with server through bridge)** + + **WebSocket Request (Stage 1 - Initial Request, client through bridge)** + + .. code-block:: json + + { + "namespace" : "rpc", + "name" : "auth_ssl", + "id" : "sampleID", + "args" : { + "action" : "auth_ssl", + "md5_key" : "" + } + } + + + **WebSocket Reply (Stage 1)** + + .. code-block:: json + + { + "args": { + "test_string" : "", + "new_ssl_key" : ["", "", ""] + }, + "id": "sampleID", + "name": "response", + "namespace": "rpc" + } + + +.. important:: all future messages are bulk encrypted with the private key. For example, the following section {"id","name","namespace","args"} is being encrypted in one block prior to transport through the bridge. + .. _SSL Certificate Management: SSL Certificate Management