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
_______________________________________________
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to