I updated my ssl certificate on my target server. It has been working great. I am using this chunk of code to call it:
st2 = createSecurityContext(ctx2, "TLSv1.2")
st2 = createSecureRequest(purl, pmethod, pobjRequest, ctx2)
st2 = setRequestHeader(pobjRequest, "OPPSAUTH",AUTH)
st2 = setRequestHeader(pobjRequest, "OPPSSERVER",SERVER)
st2 = setRequestHeader(pobjRequest, "Content-Type","application/json")
st2 = submitRequest(pobjRequest, 5000, POST.DATA, pheaders, pdata, httpstatus)
I reissued my cert and updated it and now when I try to call the server, I am getting:
1896:error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed:.\\ssl\\s3_clnt.c:1258:
I tried to do some testing by copying the program and simplifying it and when I compile, it give the same error the first time I compile it, but then it will compile, but still does not work.
If I put the old cert back, it works fine again. I also tried calling a different server and that works fine as well.
Also, I checked in the browser and the cert is valid and I also ran it against www.ssllabs.com/ssltest and it is fine.
Any suggestions?
------------------------------
Troy Dittberner
President
Northstar Data Services Inc
Brooklyn Park VA US
------------------------------