3cb478225c00f07c5034841ae659f22ed4298e5e
jeb
jCloud Event Bus
jebp (jCloud Event Bus Protocol)
Messages
All messages begin with 0x01, followed by the content length length. The content length length is the length of the content length and representated by one byte. Then follows the content length and after that the message content.
Handshake
-
Server: Server protocol, version
-
Encryption
- Client: Serialized client public key
- Server: Serialized server public key
- Client: Client nonce
- Server: Server nonce
- Client: Random bytes (encrypted)
- Server: received bytes from client (not encrypted)
The client closes the connection if the received bytes from server (7.) do not match the generated bytes (6.) to prevent malfunction and test the encryption.
-
Server authentication
- Server: Server certificate
The client closes the connection if it does not trust the server certificate.
-
Client authentication
- Client: Client certificate
The server closes the connection if the client is unauthorized.
Description
Languages
Python
99%
Dockerfile
1%