Hi John,
Thank you for helping me with this issue! I build an XML response using
snprintf shown below that I post using libcURL with this URL
https://mydogtagserver:8443/ca/rest/certrequests
snprintf(payload, MAX_CERT_LEN, "<?xml version=\"1.0\"
encoding=\"UTF-8\"
standalone=\"yes\"?><CertEnrollmentRequest>"
" <profileId>%s</profileId>
<isRenewal>false</isRenewal>
<xmlOutput>false</xmlOutput>"
" <Input> <InputAttrs> <InputAttr
name=\"cert_request_type\">pkcs10</InputAttr>\t"
" <InputAttr name=\"cert_request\">%s</InputAttr>
</InputAttrs> </Input></CertEnrollmentRequest>",
profile_id, pkcs10_csr);
profile_id is the profile I wish to enroll with and pkcs10_csr is my CSR.
Let me know if you need any more information from me.
Thank you,
Peter
On Tue, Jun 23, 2015 at 4:47 PM, John Magne <jmagne(a)redhat.com> wrote:
Hi:
Would it be possible to post the exact or similar command line you were
trying?
----- Original Message -----
> From: "Peter P." <p.pan48711(a)gmail.com>
> To: pki-users(a)redhat.com
> Sent: Tuesday, June 23, 2015 12:23:27 PM
> Subject: [Pki-users] Dogtag ReST Interface Enrollment Java Null Pointer
Exception
>
> Hi,
>
> I have encountered a Java null pointer exception when I try to do an an
> enrollment using Dogtag 10.2.4's ReST interface. I receive the following
> response back from Dogtag when I POST to the resource ending in
> /ca/rest/certrequests.
>
> <?xml version="1.0" encoding="UTF-8"
>
standalone="yes"?><PKIException><Attributes/><ClassName>com.netscape.certsrv.base.PKIException</ClassName><Code>500</Code><Message>java.lang.NullPointerException</Message></PKIException>2015/
>
> I understand that there is a new ReST interface that was introduced to
Dogtag
> where enrollment requests should be posted to the resource ending in
> /pki/request. However, when I do that, I receive a 404 page back in
> response.
>
> I am using Fedora 22 Server 32 bit with just the 389 directory service
> installed alongside Dogtag 10.2.4.
>
> Any guidance would be appreciated.
>
> Thanks,
>
> Peter
>
>
>
>
> _______________________________________________
> Pki-users mailing list
> Pki-users(a)redhat.com
>
https://www.redhat.com/mailman/listinfo/pki-users