Skip to content

Commit

Permalink
Document password file options for WS SSL (#1751)
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandra Tran <alexandra.tran@consensys.net>
Co-authored-by: Alexandra Tran <alexandra.tran@consensys.net>
  • Loading branch information
alexandratran and Alexandra Tran authored Dec 11, 2024
1 parent e6b8e7f commit 83a56f3
Showing 1 changed file with 96 additions and 9 deletions.
105 changes: 96 additions & 9 deletions docs/public-networks/reference/cli/options.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`

<Tabs>
Expand Down Expand Up @@ -5192,7 +5195,49 @@ rpc-ws-ssl-keystore-password="keystore_password"

</Tabs>

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`

<Tabs>

<TabItem value="Syntax" label="Syntax" default>

```bash
--rpc-ws-ssl-keystore-password-file=<FILE>
```

</TabItem>

<TabItem value="Example" label="Example">

```bash
--rpc-ws-ssl-keystore-password-file=/home/me/me_node/keystore-password.txt
```

</TabItem>

<TabItem value="Environment variable" label="Environment variable">

```bash
BESU_RPC_WS_SSL_KEYSTORE_PASSWORD_FILE="/home/me/me_node/keystore-password.txt"
```

</TabItem>

<TabItem value="Configuration file" label="Configuration file">

```bash
rpc-ws-ssl-keystore-password-file="/home/me/me_node/keystore-password.txt"
```

</TabItem>

</Tabs>

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`

Expand Down Expand Up @@ -5277,7 +5322,7 @@ rpc-ws-ssl-trustcert-file="/home/me/me_node/trust-cert.pem"

</Tabs>

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`
Expand Down Expand Up @@ -5318,10 +5363,11 @@ rpc-ws-ssl-truststore-file="/home/me/me_node/websocket-truststore.jks"

</Tabs>

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`

Expand All @@ -5330,38 +5376,79 @@ Specify the truststore file password using [`--rpc-ws-ssl-truststore-password`](
<TabItem value="Syntax" label="Syntax" default>

```bash
--rpc-ws-ssl-truststore-password=<FILE>
--rpc-ws-ssl-truststore-password=<STRING>
```

</TabItem>

<TabItem value="Example" label="Example">

```bash
--rpc-ws-ssl-truststore-password=truststore_password
```

</TabItem>

<TabItem value="Environment variable" label="Environment variable">

```bash
BESU_RPC_WS_SSL_TRUSTSTORE_PASSWORD="truststore_password"
```

</TabItem>

<TabItem value="Configuration file" label="Configuration file">

```bash
rpc-ws-ssl-truststore-password="truststore_password"
```

</TabItem>

</Tabs>

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`

<Tabs>

<TabItem value="Syntax" label="Syntax" default>

```bash
--rpc-ws-ssl-truststore-password-file=<FILE>
```

</TabItem>

<TabItem value="Example" label="Example">

```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
```

</TabItem>

<TabItem value="Environment variable" label="Environment variable">

```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"
```

</TabItem>

<TabItem value="Configuration file" label="Configuration file">

```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"
```

</TabItem>

</Tabs>

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`
Expand Down

0 comments on commit 83a56f3

Please sign in to comment.