[MarkLogic Dev General] Correct option format for certification info in xdmp:http-get() function?

Asit Nautiyal asitnautiyal at outlook.com
Tue Jan 19 22:09:52 PST 2016


Hi David/Geert,


I am not able to call ssl enabled "https" URL' s with xdmp:http-get() function. I added the certificate in my browser and  from browser I am able to call "https" URL''s.


I am using xdmp:http-function() to call https URL's (ssl enabled https server in MarkLogic). We have below options with http-get() function.


<client-cert> ==> in this option I am passing Certificate string

<client-key> == > What "key" I have to pass?

<pass-phrase> ==>  What phrase I have to pass?


I am using pki:get-certificates-for-template($template-id) function to get all certificate information of ssl enabled https server from Security database.

I am getting below sample xml in response:


<pki: certificate>

 <pki:template-id>1234556</pki:template-id>

<pki:certificate-id>987654</pki:certificate-id>

...............................................

........

<pki: pem>--BEGIN CERTIFICATE----  MHIHOOJJ7979KLHFKHS9U HFI7F9  --END CERTIFICATE-- </pki: pem>

<cert>

 <serialNumber>6HJOO90JJK</serialNumber>

.........

</cert>

</pki:certificate>


So, what is the value for http-get() function options <client-key>, <pass-phrase> from above xml?


For <client-cert> I took string from <pki: pem> but I am getting X509-PEMREADCERT error code with message "unable to read PEM encoded Certificate".


Any solution or suggestion to resolve this issue.?


Regards,

Asit Nautiyal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://developer.marklogic.com/pipermail/general/attachments/20160120/c83319ec/attachment.html 


More information about the General mailing list