-
Notifications
You must be signed in to change notification settings - Fork 1k
Findings and HowTo Fix them
Dirk Wetter edited this page Nov 22, 2019
·
8 revisions
Two options here:
- Run the whole script with
--debug=<number> --log
. Thentar -cvzf mydebug.tgz /tmp/ssltester.<randomstring> <nameoflogfile>
- Run the section where the problem is (see
--help
):script -c "bash -vx testssl.sh optionfortherightsection>"
For <number> see man page.
- YMMV
2a) For a full debug output
-
(all-in-one output): run
script -a mydebug.script -c "SETX=true bash -x testssl.sh <CMDLINE>"
- (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 -x testssl.sh <<optionfortherightsection>>
- editing the program and add before a