diff options
| author | James Elliott <james-d-elliott@users.noreply.github.com> | 2024-04-01 11:54:56 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-01 00:54:56 +0000 |
| commit | 80e7030cc6331c5f1c415b05ac4085d980de07be (patch) | |
| tree | 8e556f35752e4f1f3c5618be9873bc370063b0ae /docs/content/reference/guides/generating-secure-values.md | |
| parent | 8971a3fec7f6d86267696d3278a44aa3a63fae80 (diff) | |
docs: add env tabs (#7055)
Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
Diffstat (limited to 'docs/content/reference/guides/generating-secure-values.md')
| -rw-r--r-- | docs/content/reference/guides/generating-secure-values.md | 60 |
1 files changed, 32 insertions, 28 deletions
diff --git a/docs/content/reference/guides/generating-secure-values.md b/docs/content/reference/guides/generating-secure-values.md index 9b373da36..3647ec62e 100644 --- a/docs/content/reference/guides/generating-secure-values.md +++ b/docs/content/reference/guides/generating-secure-values.md @@ -27,17 +27,18 @@ string and the hash at the same time. Use the `authelia crypto hash generate --help` command or see the [authelia crypto hash generate] reference guide for more information on all available options and algorithms. -##### Using Docker - +{{< envTabs "Generate Random Password" >}} +{{< envTab "Docker" >}} ```bash -docker run authelia/authelia:latest authelia crypto hash generate argon2 --random --random.length 64 --random.charset alphanumeric +$ docker run authelia/authelia:latest authelia crypto hash generate argon2 --random --random.length 64 --random.charset alphanumeric ``` - -##### Using the Binary - +{{< /envTab >}} +{{< envTab "Bare-Metal" >}} ```bash -authelia crypto hash generate argon2 --random --random.length 64 --random.charset alphanumeric +$ authelia crypto hash generate argon2 --random --random.length 64 --random.charset alphanumeric ``` +{{< /envTab >}} +{{< /envTabs >}} ## Generating a Random Alphanumeric String @@ -51,17 +52,18 @@ The __Authelia__ docker container or CLI binary can be used to generate a random Use the `authelia crypto rand --help` command or see the [authelia crypto rand] reference guide for more information on all available options. -##### Using Docker - +{{< envTabs "Generate Random String" >}} +{{< envTab "Docker" >}} ```bash -docker run authelia/authelia:latest authelia crypto rand --length 64 --charset alphanumeric +$ docker run authelia/authelia:latest authelia crypto rand --length 64 --charset alphanumeric ``` - -##### Using the Binary - +{{< /envTab >}} +{{< envTab "Bare-Metal" >}} ```bash -authelia crypto rand --length 64 --charset alphanumeric +$ authelia crypto rand --length 64 --charset alphanumeric ``` +{{< /envTab >}} +{{< /envTabs >}} ### openssl @@ -92,17 +94,18 @@ The __Authelia__ docker container or CLI binary can be used to generate a RSA 40 Use the `authelia crypto pair --help` command or see the [authelia crypto pair] reference guide for more information on all available options. -##### Using Docker - +{{< envTabs "Generate RSA Key Pair" >}} +{{< envTab "Docker" >}} ```bash -docker run -u "$(id -u):$(id -g)" -v "$(pwd)":/keys authelia/authelia:latest authelia crypto pair rsa generate --bits 4096 --directory /keys +$ docker run -u "$(id -u):$(id -g)" -v "$(pwd)":/keys authelia/authelia:latest authelia crypto pair rsa generate --bits 4096 --directory /keys ``` - -##### Using the Binary - +{{< /envTab >}} +{{< envTab "Bare-Metal" >}} ```bash -authelia crypto pair rsa generate --directory /path/to/keys +$ authelia crypto pair rsa generate --directory /path/to/keys ``` +{{< /envTab >}} +{{< /envTabs >}} ### openssl @@ -126,17 +129,18 @@ domain `example.com`. Use the `authelia crypto certificate --help` command or see the [authelia crypto certificate] reference guide for more information on all available options. -##### Using Docker - +{{< envTabs "Generate RSA Key Pair" >}} +{{< envTab "Docker" >}} ```bash -docker run -u "$(id -u):$(id -g)" -v "$(pwd)":/keys authelia/authelia authelia crypto certificate rsa generate --common-name example.com --directory /keys +$ docker run -u "$(id -u):$(id -g)" -v "$(pwd)":/keys authelia/authelia:latest authelia crypto certificate rsa generate --common-name example.com --directory /keys ``` - -##### Using the Binary - +{{< /envTab >}} +{{< envTab "Bare-Metal" >}} ```bash -authelia crypto certificate rsa generate --common-name example.com --directory /path/to/keys +$ authelia crypto certificate rsa generate --common-name example.com --directory /path/to/keys ``` +{{< /envTab >}} +{{< /envTabs >}} ### openssl |
