1ac4aefdc8
neue Datei: client/client.py neue Datei: client/sec/client.crt.pem neue Datei: client/sec/client.csr.pem neue Datei: client/sec/client.key.pem neue Datei: container/Dockerfile neue Datei: container/requirements.txt neue Datei: lib/__pycache__/crypto_utils.cpython-313.pyc neue Datei: lib/__pycache__/jebp_utils.cpython-313.pyc neue Datei: lib/__pycache__/terminal_table.cpython-313.pyc neue Datei: lib/crypto_utils.py neue Datei: lib/jebp_utils.py neue Datei: lib/terminal_table.py neue Datei: server/clients_management/chclient.py neue Datei: server/clients_management/lsclients.py neue Datei: server/clients_management/mkclient.py neue Datei: server/clients_management/rmclient.py neue Datei: server/config/clients/fingerprints neue Datei: server/main.py neue Datei: server/sec/ca/certs/ca.cert.pem neue Datei: server/sec/ca/private/ca.key.pem neue Datei: server/sec/server.crt.pem neue Datei: server/sec/server.csr.pem neue Datei: server/sec/server.key.pem gelöscht: main.py gelöscht: sec/cert.pem gelöscht: sec/key.pem
28 lines
1.0 KiB
Markdown
28 lines
1.0 KiB
Markdown
# 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
|
|
1. Server: Server protocol, version
|
|
2. Encryption
|
|
1. Client: Serialized client public key
|
|
2. Server: Serialized server public key
|
|
3. Client: Client nonce
|
|
4. Server: Server nonce
|
|
5. Client: Random bytes (encrypted)
|
|
6. 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.
|
|
3. Server authentication
|
|
1. Server: Server certificate
|
|
|
|
The client closes the connection if it does not trust the server certificate.
|
|
4. Client authentication
|
|
1. Client: Client certificate
|
|
|
|
The server closes the connection if the client is unauthorized. |