#117 update 'getcert list' output to show template, v2-template and issuer fields
Closed: fixed 4 years ago by rcritten. Opened 4 years ago by ftweedal.

As a user I want getcert list to show the template/profile, ms v2 template, and issuer (sub-CA) configured for a request.


Can you be more specific about what you're looking at with issuer (sub-CA)? issuer is already displayed. What property is it?

I think this will handle the first two:

diff --git a/src/getcert.c b/src/getcert.c
index d72d4cc9..939d6a19 100644
--- a/src/getcert.c
+++ b/src/getcert.c
@@ -3882,6 +3882,18 @@ list(const char *argv0, int argc, const char **ar
gv)
                                printf("\t\t%s\n", as[j]);
                        }
                }
+               as = query_prop_as(bus, requests[i], CM_DBUS_REQUEST_INTERFA
CE,
+                                  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_INTERFA
CE,
+                                  CM_DBUS_PROP_TEMPLATE_MS_CERTIFICATE_TEMP
LATE,
+                                  verbose, globals.tctx);
+               if (as != NULL) {
+                       printf(_("\tms v2 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));

@rcritten it's the CM_DBUS_PROP_TEMPLATE_ISSUER, which specifies the handle of the issuer to use (currently used for requesting cert from IPA sub-CAs).

Metadata Update from @rcritten:
- Issue assigned to rcritten

4 years ago

Metadata Update from @rcritten:
- Issue priority set to: major
- Issue set to the milestone: 0.79

4 years ago

Metadata Update from @rcritten:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

4 years ago

Metadata Update from @rcritten:
- Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1734451

4 years ago

Login to comment on this ticket.

Metadata