[Pki-users] Dogtag ReST Interface Enrollment Java Null Pointer Exception
Peter P.
p.pan48711 at gmail.com
Tue Jun 23 22:33:46 UTC 2015
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 at 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 at gmail.com>
> > To: pki-users at 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 at redhat.com
> > https://www.redhat.com/mailman/listinfo/pki-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/pki-users/attachments/20150623/037dacbf/attachment.htm>
More information about the Pki-users
mailing list