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