From f98840bf9e11deb5fe25d53c4ff3c82a5fb6f1fb Mon Sep 17 00:00:00 2001 From: Jan Dittberner Date: Wed, 30 Nov 2022 07:55:03 +0100 Subject: [PATCH] Add documentation section for socat PTYs --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e8e7291..45cabbb 100644 --- a/README.md +++ b/README.md @@ -68,4 +68,14 @@ socat -d -d -v pty,rawer,link=$(pwd)/testPty EXEC:./clientsim,pty,rawer ``` You will need to configure `$(pwd)/testPty` as `serial`/`device` in your `config.yaml` to let the signer command find -the emulated serial device. \ No newline at end of file +the emulated serial device. + +## Using socat to simulate TTYs for signer and signer client + +The following `socat` command line will open TTY pseudo devices in `./testPty` as well as +`../cacert-gosignerclient/testPty`. This will allow both the signer and the signer client code to have +`testPty` as `device` value in their configuration YAML file. + +```shell +socat -d -d pty,rawer,link=$(pwd)/testPty pty,rawer,link=$(pwd)/../cacert-gosignerclient/testPty +``` \ No newline at end of file