<div dir="ltr">Hi Endi,<div><br></div><div>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. </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 Wed, Jun 24, 2015 at 2:09 PM, Endi Sukma Dewata <span dir="ltr"><<a href="mailto:edewata@redhat.com" target="_blank">edewata@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 6/23/2015 5:33 PM, Peter P. wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi John,<br>
<br>
Thank you for helping me with this issue! I build an XML response using<br>
snprintf  shown below that I post using libcURL with this URL<br>
<a href="https://mydogtagserver:8443/ca/rest/certrequests" rel="noreferrer" target="_blank">https://mydogtagserver:8443/ca/rest/certrequests</a><br>
<br>
     snprintf(payload, MAX_CERT_LEN,  "<?xml version=\"1.0\"<br>
encoding=\"UTF-8\" standalone=\"yes\"?><CertEnrollmentRequest>"<br>
              "    <profileId>%s</profileId><br>
  <isRenewal>false</isRenewal>    <xmlOutput>false</xmlOutput>"<br>
              "    <Input>       <InputAttrs>   <InputAttr<br>
name=\"cert_request_type\">pkcs10</InputAttr>\t"<br>
              " <InputAttr name=\"cert_request\">%s</InputAttr><br>
</InputAttrs>    </Input></CertEnrollmentRequest>",<br>
              profile_id, pkcs10_csr);<br>
<br>
profile_id is the profile I wish to enroll with and pkcs10_csr is my CSR.<br>
<br>
Let me know if you need any more information from me.<br>
<br>
Thank you,<br>
<br>
Peter<br>
</blockquote>
<br></span>
Hi Peter,<br>
<br>
The XML request format above seems to be outdated. Please take a look at the following page:<br>
<a href="http://pki.fedoraproject.org/wiki/User_Certificate_Setup" rel="noreferrer" target="_blank">http://pki.fedoraproject.org/wiki/User_Certificate_Setup</a><br>
<br>
You can also run the CLI and see the actual XML request sent by the CLI:<br>
$ pki -c Secret123 client-init<br>
$ mkdir tmp<br>
$ pki -v --output tmp -c Secret123 client-cert-request uid=testuser<br>
$ cat tmp/http-request-2<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Endi S. Dewata<br>
</font></span></blockquote></div><br></div>