From 60a6786389b8aede2b20ea2ba2d65b48b8aead8a Mon Sep 17 00:00:00 2001 From: Dirk Wetter Date: Fri, 22 Nov 2019 10:58:31 +0100 Subject: [PATCH] Updated Findings and HowTo Fix them (markdown) --- Findings-and-HowTo-Fix-them.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Findings-and-HowTo-Fix-them.md b/Findings-and-HowTo-Fix-them.md index 56218cb..e8b9429 100644 --- a/Findings-and-HowTo-Fix-them.md +++ b/Findings-and-HowTo-Fix-them.md @@ -4,17 +4,22 @@ Two options here: -* Run the whole script with ``--debug=1 --log``. Then ``tar -cvzf mydebug.tgz /tmp/ssltester. `` +* Run the whole script with ``--debug= --log``. Then ``tar -cvzf mydebug.tgz /tmp/ssltester. `` * Run the section where the problem is (see ``--help``): ``script -c "bash -vx testssl.sh optionfortherightsection>"`` +For \ see man page. ### Debug yourself -YMMV +1) YMMV -* spot the section where the bug is +2a) For a full debug output + * **(all-in-one output):** run ``script -a mydebug.script -c "SETX=true bash -x testssl.sh "`` + * **(separate debugging file):** or run "bash -x testssl.sh " and look for last file in /tmp/testssl.s-XXXX.log + +2b) spot the section where the bug is * edit the script and put **after** the section an ``exit 0`` * switch on debugging either by * editing the program and add before a ``set -x``, run the section of the script - * run the script with ``bash -vx testssl.sh <>`` + * run the script with ``bash -x testssl.sh <>``