From c10e0f6f318e7b52efc3a122e3f7ba9818206caf Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Sep 06 2019 17:43:13 +0000 Subject: Pass the CA identifier to the SCEP submit helper Patch contributed by Alexy Dotsenko https://pagure.io/certmonger/issue/58 --- diff --git a/src/getcert.c b/src/getcert.c index dd08c38..e01f78a 100644 --- a/src/getcert.c +++ b/src/getcert.c @@ -4595,7 +4595,7 @@ add_scep_ca(const char *argv0, int argc, const char **argv) return 1; } command = talloc_asprintf(globals.tctx, - "%s -u %s %s %s %s %s %s %s %s", + "%s -u %s %s %s %s %s %s %s %s %s %s", shell_escape(globals.tctx, CM_SCEP_HELPER_PATH), shell_escape(globals.tctx, url), @@ -4603,6 +4603,8 @@ add_scep_ca(const char *argv0, int argc, const char **argv) root ? shell_escape(globals.tctx, root) : "", racert ? "-r" : "", racert ? shell_escape(globals.tctx, racert) : "", + id ? "-i" : "", + id ? shell_escape(globals.tctx, id) : "", certs ? "-I" : "", certs ? shell_escape(globals.tctx, certs) : "", prefer_non_renewal ? "-n" : "");