Firefox OS/Remote Control: Difference between revisions

→‎Establish secure connection: Add AJAX detail in steps for reference
(→‎Ajax Protocol: Add secure connection AJAX)
(→‎Establish secure connection: Add AJAX detail in steps for reference)
Line 30: Line 30:
# Client requests page without valid UUID.
# Client requests page without valid UUID.
# Server response secure.html as requested page for key exchange.
# Server response secure.html as requested page for key exchange.
# Client acquires RSA public key from secure.sjs.
# Client acquires RSA public key from secure.sjs. [[Firefox_OS/Remote_Control#RSA_public_key_exchange|Detail]]
# Secure.sjs replies RSA public key SPKI in base64.
# Secure.sjs replies RSA public key SPKI in base64.
# Client imports RSA public key and wrap symmetric key.
# Client imports RSA public key and wrap symmetric key.
# Client sends wrapped symmetric key to secure.sjs in base64.
# Client sends wrapped symmetric key to secure.sjs in base64. [[Firefox_OS/Remote_Control#Send_symmetric_key|Detail]]
# Secure.sjs replies a ticket number.
# Secure.sjs replies a ticket number.
# Secure.sjs unwraps symmetric key with RSA private key.
# Secure.sjs unwraps symmetric key with RSA private key.
# Secure.sjs saves symmetric key.
# Secure.sjs saves symmetric key.
# Remote Control Service generates a new UUID, encrypted with symmetric key and binds encrypted UUID with ticket number.
# Remote Control Service generates a new UUID, encrypted with symmetric key and binds encrypted UUID with ticket number.
# Client polls encrypted UUID from secure.sjs by ticket number.
# Client polls encrypted UUID from secure.sjs by ticket number. [[Firefox_OS/Remote_Control#Poll_UUID|Detail]]
# Client decrypts received UUID to double confirm server receives correct symmetric key.
# Client decrypts received UUID to double confirm server receives correct symmetric key.
# Client reloads the URL with UUID.
# Client reloads the URL with UUID.
133

edits