-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"debug" option in config file explodes the shell #378
Comments
That config file is for the pkcs#11 module, the shell uses a different format. The config file for the shell simply allows you to specify the same options you would from the command line. It uses the gengetopt function cmdline_parser_config_file to implement this. Note that only command line options can be used, the interactive commands are not supported. |
Well, config file for What's the format of the |
The supported options are the same as the command line 'long options' i.e. the ones with a double dash. You can see them in the source file src/cmdline.ggo or from the help given by yubihsm-shell -h. In the file they should be given without the double dashes. 'connector' and 'cacert' options (but not 'debug', use 'verbose' instead) are indeed supported by yubihsm-shell, but that's just because the options overlap. I agree it should be documented, will forward this. |
@qpernil thanks.
|
The verbosity is a set of bit flags, where YH_VERB_QUIET sets none and YH_VERB_ALL sets all flags. See their definitions in yubihsm.h around line 130. Regarding cert and key, yes the curl backend now supports client certificate and key, if requested / required by the server. yubihsm-connector doesn't support this directly yet, so something like a reverse proxy would be needed on that side. Also, the winhttp backend (on Windows) doesn't support it yet. This authentication is strictly on the https level, so it has nothing to do with the yubihsm. It is more of a way to disallow unauthorized access to the connector. |
On both MacOS and Linux, none of the three debug flags in the config file are accepted. Instead,
debug
,dinout
,libdebug
all result inyubihsm-shell: unrecognized option '--debug'
error message.This happens with v2.4.1, 2.4.2, and master (built from source).
The text was updated successfully, but these errors were encountered: