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