From ff0bce09054adcd554491bc288f5e4f72643cc9f Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Jul 17 2019 17:11:38 +0000 Subject: Display profile, MS template and requested issuer if available Include more optional fields in the getcert list output. https://pagure.io/certmonger/issue/117 Signed-off-by: Rob Crittenden --- diff --git a/src/getcert.c b/src/getcert.c index ddb28de..ac51c2f 100644 --- a/src/getcert.c +++ b/src/getcert.c @@ -3882,6 +3882,24 @@ list(const char *argv0, int argc, const char **argv) printf("\t\t%s\n", as[j]); } } + as = query_prop_as(bus, requests[i], CM_DBUS_REQUEST_INTERFACE, + CM_DBUS_PROP_TEMPLATE_PROFILE, + verbose, globals.tctx); + if (as != NULL) { + printf(_("\tprofile: %s\n"), as); + } + as = query_prop_as(bus, requests[i], CM_DBUS_REQUEST_INTERFACE, + CM_DBUS_PROP_TEMPLATE_MS_CERTIFICATE_TEMPLATE, + verbose, globals.tctx); + if (as != NULL) { + printf(_("\tms v2 template: %s\n"), as); + } + as = query_prop_as(bus, requests[i], CM_DBUS_REQUEST_INTERFACE, + CM_DBUS_PROP_TEMPLATE_ISSUER, + verbose, globals.tctx); + if (as != NULL) { + printf(_("\tissuer template: %s\n"), as); + } printf(_("\tpre-save command: %s\n"), query_prop_s(bus, requests[i], CM_DBUS_REQUEST_INTERFACE, CM_DBUS_PROP_CERT_PRESAVE_COMMAND, verbose, globals.tctx));