diff --git a/lib/hx509/hxtool-commands.in b/lib/hx509/hxtool-commands.in index aa4aa2223..e96415836 100644 --- a/lib/hx509/hxtool-commands.in +++ b/lib/hx509/hxtool-commands.in @@ -344,6 +344,9 @@ command = { argument="certificates ..." help = "Query the certificates for a match" } +command = { + name = "info" +} command = { name = "help" name = "?" diff --git a/lib/hx509/hxtool.c b/lib/hx509/hxtool.c index 7fe28efd6..1bae31581 100644 --- a/lib/hx509/hxtool.c +++ b/lib/hx509/hxtool.c @@ -902,6 +902,23 @@ pkcs10_print(struct pkcs10_print_options *opt, int argc, char **argv) return 0; } +int +info(void *opt, int argc, char **argv) +{ + + ENGINE_add_conf_module(); + + { + const RSA_METHOD *rsamethod; + rsamethod = RSA_get_default_method(); + if (rsamethod != NULL) + printf("rsa: %s\n", rsamethod->name); + } + + return 0; +} + + int help(void *opt, int argc, char **argv) {