[Stackoverflow] [Progress OpenEdge ABL] How to skip ssl certificate verification on HTTPS connection using the OpenEdge.Net Libraries

Status
Not open for further replies.
K

kuhle

Guest
I am trying to to do a POST to an API endpoint using Openedge. I have installed the ssl certificate of the place i am requesting from but the https request fails, telling me it can't find the ssl certificate of that place (in my /usr/dlc/certs).

"_errors": [
{
"_errorMsg": "ERROR condition: Secure Socket Layer (SSL) failure. error code -54: unable to get local issuer certificate: for 85cf5865.0 in /usr/dlc/certs (9318) (7211)",
"_errorNum": 9318
}
]


So, i have resorted to doing an insecure request, like curl does it with the --insecure or wget does it with "no-check-certificate"

I am using the OpenEdge.Net Libraries on OpenEdge 11.6

creds = new Credentials('Hire Workers Online!', 'usersname', 'password').
oPayload = NEW JsonObject().
oRequestBody = new String('CustomerReference=xxx&NoOfParcelsToAdd=2').

oRequest = RequestBuilder:post('webcam.net - Webcam Resources and Information.', oRequestBody)// Add credentials to the request
:UsingBasicAuthentication(creds)
:ContentType('application/x-www-form-urlencoded')
:AcceptJson() :Request.

oResponse = ClientBuilder:Build():Client:Execute(oRequest).


I want to know, for this OpenEdge.Net Libraries is there a tag that i can put in order to skip the checking of the certificate?

Continue reading...
 
Status
Not open for further replies.
Top