A fairly simple http request but requires a SSL certificate.
oRequest = RequestBuilder:Post(httpUrl, oString)
:AcceptJson()
:Request.
oResponse = ClientBuilder:Build():Client:Execute(oRequest).
The response returned is
<html>
<head><title>400 No required SSL certificate was sent</title></head>
<body bgcolor="white">
<center><h1>400 Bad Request</h1></center>
<center>No required SSL certificate was sent</center>
</body>
</html>
The question is: How do I reference the certificate in the call ?
Thanks,
Mike
Are you running this on a Windows client? You can try using the .NET component HttpWebRequest. It will use the Microsoft (OS) built-in certificate handling.
I came across a similar problem executing a get request on a HTTPS URL.
I found that in order to get around this using the OpenEdge RequestBuilder method i had to manually import the cert into $DLC/certs (see KB: 000043064 for more information).
For my example i also had to turn of SSL host verification.
DEF VAR oLib AS IHttpClientLibrary NO-UNDO.
DEF VAR oRequest AS IHttpRequest NO-UNDO.
DEF VAR oResponse AS IHttpResponse NO-UNDO.
oLib = ClientLibraryBuilder:Build():sslVerifyHost(NO):Library.
oRequest = RequestBuilder:Get(oURI):AcceptAll():Request.
oResponse = ClientBuilder:Build():UsingLibrary(oLib):Client:Execute(oRequest).
Hope this helps.