From 7aa58ecc2ff716a321eb44d3669c4a8ffbff530d Mon Sep 17 00:00:00 2001 From: Alexandra Tran Date: Tue, 10 Dec 2024 15:40:58 -0800 Subject: [PATCH] Document password file options for WS SSL Signed-off-by: Alexandra Tran --- docs/public-networks/reference/cli/options.md | 105 ++++++++++++++++-- 1 file changed, 96 insertions(+), 9 deletions(-) diff --git a/docs/public-networks/reference/cli/options.md b/docs/public-networks/reference/cli/options.md index 0a5f4e5186..b14f547d88 100644 --- a/docs/public-networks/reference/cli/options.md +++ b/docs/public-networks/reference/cli/options.md @@ -5154,6 +5154,9 @@ manage your SSL/TLS certificates and keys in a keystore rather than separate PEM Required if [`--rpc-ws-ssl-keystore-type`](#rpc-ws-ssl-keystore-type) is set to `JKS` or `PKCS12`. +Specify the keystore password using [`--rpc-ws-ssl-keystore-password`](#rpc-ws-ssl-keystore-password) +or [`--rpc-ws-ssl-keystore-password-file`](#rpc-ws-ssl-keystore-password-file). + ### `rpc-ws-ssl-keystore-password` @@ -5192,7 +5195,49 @@ rpc-ws-ssl-keystore-password="keystore_password" -Password for the keystore file specified in [`--rpc-ws-ssl-keystore-file`](#rpc-ws-ssl-keystore-file). +Password for the keystore specified in [`--rpc-ws-ssl-keystore-file`](#rpc-ws-ssl-keystore-file), +when enabling WebSocket SSL/TLS client authentication. + +### `rpc-ws-ssl-keystore-password-file` + + + + + +```bash +--rpc-ws-ssl-keystore-password-file= +``` + + + + + +```bash +--rpc-ws-ssl-keystore-password-file=/home/me/me_node/keystore-password.txt +``` + + + + + +```bash +BESU_RPC_WS_SSL_KEYSTORE_PASSWORD_FILE="/home/me/me_node/keystore-password.txt" +``` + + + + + +```bash +rpc-ws-ssl-keystore-password-file="/home/me/me_node/keystore-password.txt" +``` + + + + + +Path to the file containing the password for the keystore specified in [`--rpc-ws-ssl-keystore-file`](#rpc-ws-ssl-keystore-file), +when enabling WebSocket SSL/TLS client authentication. ### `rpc-ws-ssl-keystore-type` @@ -5277,7 +5322,7 @@ rpc-ws-ssl-trustcert-file="/home/me/me_node/trust-cert.pem" -Path to the PEM trust certificate file for enabling client SSL/TLS authentication for the WebSocket JSON-RPC +Path to the PEM trust certificate file when enabling client SSL/TLS authentication for the WebSocket JSON-RPC service. ### `rpc-ws-ssl-truststore-file` @@ -5318,10 +5363,11 @@ rpc-ws-ssl-truststore-file="/home/me/me_node/websocket-truststore.jks" -Path to the truststore file for enabling SSL/TLS client authentication for the WebSocket JSON-RPC +Path to the truststore file when enabling SSL/TLS client authentication for the WebSocket JSON-RPC service. -Specify the truststore file password using [`--rpc-ws-ssl-truststore-password`](#rpc-ws-ssl-truststore-password). +Specify the truststore password using [`--rpc-ws-ssl-truststore-password`](#rpc-ws-ssl-truststore-password) +or [`--rpc-ws-ssl-truststore-password-file`](#rpc-ws-ssl-truststore-password-file). ### `rpc-ws-ssl-truststore-password` @@ -5330,7 +5376,48 @@ Specify the truststore file password using [`--rpc-ws-ssl-truststore-password`]( ```bash ---rpc-ws-ssl-truststore-password= +--rpc-ws-ssl-truststore-password= +``` + + + + + +```bash +--rpc-ws-ssl-truststore-password=truststore_password +``` + + + + + +```bash +BESU_RPC_WS_SSL_TRUSTSTORE_PASSWORD="truststore_password" +``` + + + + + +```bash +rpc-ws-ssl-truststore-password="truststore_password" +``` + + + + + +Password for the truststore specified using [`--rpc-ws-ssl-truststore-file`](#rpc-ws-ssl-truststore-file), +when enabling WebSocket SSL/TLS client authentication. + +### `rpc-ws-ssl-truststore-password-file` + + + + + +```bash +--rpc-ws-ssl-truststore-password-file= ``` @@ -5338,7 +5425,7 @@ Specify the truststore file password using [`--rpc-ws-ssl-truststore-password`]( ```bash ---rpc-ws-ssl-truststore-password=/home/me/me_node/websocket-truststore.jks +--rpc-ws-ssl-truststore-password-file=/home/me/me_node/truststore-password.txt ``` @@ -5346,7 +5433,7 @@ Specify the truststore file password using [`--rpc-ws-ssl-truststore-password`]( ```bash -BESU_RPC_WS_SSL_TRUSTSTORE_PASSWORD="/home/me/me_node/websocket-truststore.jks" +BESU_RPC_WS_SSL_TRUSTSTORE_PASSWORD_FILE="/home/me/me_node/truststore-password.txt" ``` @@ -5354,14 +5441,14 @@ BESU_RPC_WS_SSL_TRUSTSTORE_PASSWORD="/home/me/me_node/websocket-truststore.jks" ```bash -rpc-ws-ssl-truststore-password="/home/me/me_node/websocket-truststore.jks" +rpc-ws-ssl-truststore-password-file="/home/me/me_node/truststore-password.txt" ``` -Password for the truststore file specified using [`--rpc-ws-ssl-truststore-file`](#rpc-ws-ssl-truststore-file) +Path to the file containing the password for the truststore specified in [`--rpc-ws-ssl-truststore-file`](#rpc-ws-ssl-truststore-file), when enabling WebSocket SSL/TLS client authentication. ### `rpc-ws-ssl-truststore-type`