Hi David, We don't have detailed API docs, but you can see how the API is used here: https://git.fedorahosted.org/cgit/pki.git/tree/base/java-tools/src/com/netsc... The input parameters need to be specified in the corresponding profile inputs, which may differ from one profile to another. I'd suggest you try the CLI first with an XML file to make sure the placements are correct: http://pki.fedoraproject.org/wiki/Submitting_Certificate_Request Then you can try calling it directly through the API. -- Endi S. Dewata On 7/25/2016 3:15 PM, David Kinghorn wrote:
Hey guys,
I'm trying to upload a csr to the ca in java and am getting a "Unknown Certificate Request Type" error. There seems to be no documentation on this. Any help what I'm doing wrong would be great. My code is as follows:
MultivaluedMap<String, String> enrollmentRequestMap = new MultivaluedMapImpl();
enrollmentRequestMap.add("cert_request_type", "pkcs10");
enrollmentRequestMap.add("cert_request", certData);
CertEnrollmentRequest enrollmentRequest = new CertEnrollmentRequest(enrollmentRequestMap);
enrollmentRequest.setProfileId(config.getRemoteAssetCertProfileId());
CertRequestInfos result = client.enrollRequest(enrollmentRequest);
Thanks, ~ David