From 2f0708d42c1c48fd212fbc035a19183c2e636424 Mon Sep 17 00:00:00 2001 From: Bri Hatch Date: Thu, 19 Oct 2023 21:54:16 +0000 Subject: [PATCH] Update --keyfile documentation; remove reference to Base64 The --keyfile expects a file containing a chiselKey (ECDSA key starting with "ck-") y or the chiselKey itself as an argument. Documentation indicated you could supplying it a base64 encoded version of chiselKey, but that's not what the code expects today at least. --- README.md | 5 +++-- main.go | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 3af60c8e..d0d7ee21 100644 --- a/README.md +++ b/README.md @@ -133,8 +133,9 @@ $ chisel server --help --keyfile, An optional path to a PEM-encoded SSH private key. When this flag is set, the --key option is ignored, and the provided private key is used to secure all communications. (defaults to the CHISEL_KEY_FILE - environment variable). Since ECDSA keys are short, you may also set keyfile - to an inline base64 private key (e.g. chisel server --keygen - | base64). + environment variable). Since ECDSA keys are short, you may also supply + the chiselkey (output of "chisel server --keygen -") as the argument + to --keyfile and forgo requiring a file on disk. --authfile, An optional path to a users.json file. This file should be an object with users defined like: diff --git a/main.go b/main.go index 525a2c7d..e5f964a3 100644 --- a/main.go +++ b/main.go @@ -118,8 +118,9 @@ var serverHelp = ` --keyfile, An optional path to a PEM-encoded SSH private key. When this flag is set, the --key option is ignored, and the provided private key is used to secure all communications. (defaults to the CHISEL_KEY_FILE - environment variable). Since ECDSA keys are short, you may also set keyfile - to an inline base64 private key (e.g. chisel server --keygen - | base64). + environment variable). Since ECDSA keys are short, you may also supply + the chiselkey (output of "chisel server --keygen -") as the argument + to --keyfile and forgo requiring a file on disk. --authfile, An optional path to a users.json file. This file should be an object with users defined like: