From ac88df45a0939d5f1ebfe8214a8179989400db8a Mon Sep 17 00:00:00 2001 From: Alen Mestrov Date: Thu, 18 Jul 2024 12:58:21 +0200 Subject: [PATCH] docs: update setup instructions to include SSL/TLS support - Updated setup.md to include steps for generating and using SSL certificates - Detailed the process for adding SSL certificates to the device - Provided a note on the need to add the certificate each time a new one is generated --- docs/03-getting-started/01-setup.mdx | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/docs/03-getting-started/01-setup.mdx b/docs/03-getting-started/01-setup.mdx index 72ad2c1f..af9aea68 100644 --- a/docs/03-getting-started/01-setup.mdx +++ b/docs/03-getting-started/01-setup.mdx @@ -48,7 +48,23 @@ cargo run -p meroctl -- --node-name node1 --home data init --server-port 2428 -- cargo run -p meroctl -- --node-name node1 --home data run ``` -Node is now initialized and ready for use. +### Adding SSL/TLS Support + +To secure the communication with your local server, a self-signed certificate will be created during server startup. + +1. **Process of Generating SSL Certificate** + + - If a certificate doesn't exist, a new one will be generated based on your current local IP address. + - If a certificate exists for the current IP address, it will be used. + - If a certificate exists but is not configured for the current IP address, a new certificate will be created. + +2. **Add the SSL Certificate to Your Device** + + Follow the instructions provided in the CLI output to add the self-signed SSL certificate to your device's trusted certificates. + +> **_NOTE:_** Every time a new certificate is generated (e.g., on the first start of the server or when the IP address changes), you will need to add it to your device's trusted certificates. + +Node is now initialized, secure, and ready for use. ### Congratulations on setting up your node!