From b19d30d1608eadbf8810759a996fde89f3466878 Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Thu, 17 Nov 2016 13:05:14 -0500 Subject: [PATCH] Use shell instead of sh --- website/source/docs/agent/encryption.html.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/website/source/docs/agent/encryption.html.md b/website/source/docs/agent/encryption.html.md index e7d5b1b75..59edcf0b1 100644 --- a/website/source/docs/agent/encryption.html.md +++ b/website/source/docs/agent/encryption.html.md @@ -22,7 +22,7 @@ of this setting is a server configuration file containing the encryption key. The key must be 16-bytes, base64 encoded. As a convenience, Nomad provides the [`nomad keygen`](/docs/commands/keygen.html) command to generate a cryptographically suitable key: -```shell +```sh $ nomad keygen cg8StVXbQJ0gPvMd9o7yrg== ``` @@ -67,9 +67,9 @@ setting up TLS is to create a Certificate Authority (CA) certificate. The following command will generate a suitable example CA CSR, certificate, and key: -```sh +```shell # Run in the directory where you want to store certificates -cfssl print-defaults csr | cfssl gencert -initca - | cfssljson -bare ca +$ cfssl print-defaults csr | cfssl gencert -initca - | cfssljson -bare ca ``` Next create a `nomad-csr.json` which contains the configuration for the actual @@ -95,8 +95,8 @@ on the node's role. Create a certificate signed by your CA: -```sh -cfssl gencert -ca ca.pem -ca-key ca-key.pem nomad-csr.json | cfssljson -bare nomad +```shell +$ cfssl gencert -ca ca.pem -ca-key ca-key.pem nomad-csr.json | cfssljson -bare nomad ``` You've now successfully generated self-signed certificates! You should see the