[Pki-users] Dogtag ReST Interface Enrollment Java Null Pointer Exception

Peter P. p.pan48711 at gmail.com
Wed Jun 24 18:31:42 UTC 2015


Hi Endi,

Is there more documentation for the whole XML schema described on that
page? I believe for my use case I will need to adjust some of the tags
present in my XML posts to Dogtag.

Thank you,

Peter

On Wed, Jun 24, 2015 at 2:09 PM, Endi Sukma Dewata <edewata at redhat.com>
wrote:

> On 6/23/2015 5:33 PM, Peter P. wrote:
>
>> 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
>>
>
> Hi Peter,
>
> The XML request format above seems to be outdated. Please take a look at
> the following page:
> http://pki.fedoraproject.org/wiki/User_Certificate_Setup
>
> You can also run the CLI and see the actual XML request sent by the CLI:
> $ pki -c Secret123 client-init
> $ mkdir tmp
> $ pki -v --output tmp -c Secret123 client-cert-request uid=testuser
> $ cat tmp/http-request-2
>
> --
> Endi S. Dewata
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/pki-users/attachments/20150624/91d6dde2/attachment.htm>


More information about the Pki-users mailing list