debug: add base64 encoded debug files

When troubleshooting it is helpful to put the generated files into an asn1 decoder. The files can be copy/pasted easily in b64 format.

This change creates b64 files when the debug flag is set to make this process easier.
This commit is contained in:
Greg T. Wallace 2024-06-04 18:59:36 -04:00
parent 01be6ca577
commit da84a7b085
3 changed files with 29 additions and 1 deletions
pkg/app

View file

@ -57,7 +57,7 @@ func (app *app) getConfig(args []string) error {
// apc-p15-tool -- root command
rootFlags := ff.NewFlagSet("apc-p15-tool")
cfg.debugLogging = rootFlags.BoolLong("debug", "set this flag to enable additional debug logging messages")
cfg.debugLogging = rootFlags.BoolLong("debug", "set this flag to enable additional debug logging messages and files")
rootCmd := &ff.Command{
Name: "apc-p15-tool",