A new parameter has been added to set the renewal field in CertEnrollmentRequest.
Pushed to master under trivial rule. -- Endi S. Dewata
>From 3c1b6188cfdd71511ef3f7b1c2499a30f57f08d3 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" <edew...@redhat.com> Date: Thu, 2 Feb 2017 18:03:10 +0100 Subject: [PATCH] Added --renewal param to pki ca-cert-request-submit. A new parameter has been added to set the renewal field in CertEnrollmentRequest. --- .../src/com/netscape/cmstools/cert/CertRequestSubmitCLI.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/base/java-tools/src/com/netscape/cmstools/cert/CertRequestSubmitCLI.java b/base/java-tools/src/com/netscape/cmstools/cert/CertRequestSubmitCLI.java index acdaebe0825f217f8b88cd181bfebe509aa8d7c5..6223a8e66d52c2142da67155ab0d70f72a7db427 100644 --- a/base/java-tools/src/com/netscape/cmstools/cert/CertRequestSubmitCLI.java +++ b/base/java-tools/src/com/netscape/cmstools/cert/CertRequestSubmitCLI.java @@ -56,6 +56,9 @@ public class CertRequestSubmitCLI extends CLI { option.setArgName("type"); options.addOption(option); + option = new Option(null, "renewal", false, "Submit renewal request"); + options.addOption(option); + option = new Option(null, "csr-file", true, "File containing the CSR"); option.setArgName("path"); options.addOption(option); @@ -154,6 +157,8 @@ public class CertRequestSubmitCLI extends CLI { } } + request.setRenewal(cmd.hasOption("renewal")); + String csrFilename = cmd.getOptionValue("csr-file"); if (csrFilename != null) { @@ -226,6 +231,10 @@ public class CertRequestSubmitCLI extends CLI { request.setAttribute("pwd", certRequestPassword); } + if (verbose) { + System.out.println(request); + } + CertRequestInfos cri = certCLI.certClient.enrollRequest(request, aid, adn); MainCLI.printMessage("Submitted certificate request"); CertCLI.printCertRequestInfos(cri); -- 2.5.5
_______________________________________________ Pki-devel mailing list Pki-devel@redhat.com https://www.redhat.com/mailman/listinfo/pki-devel