Error when trying to use REST API to connect to PayPal Sandbox

jasfi
New Community Member

I'm trying to connect to the PayPal Sandbox REST API. This is a Nim program that uses httpclient, but there's nothing specific to Nim since this is just a REST API.

 

The error I get is:

 

Error: unhandled exception: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed [SslError]

 

I'm using OpenSSL 1.1.1m on Windows 10. This used to work before (last week), so I don't know why it stopped work, and whether its an issue on the client or server.

Login to Me Too
2 REPLIES 2

angelleye
Advisor
Advisor

I'm not familiar with Nim, but I know with PHP it's a combination of PHP, OpenSSL, and cURL versions that allow for the TLS transactions to work with PayPal.  If one of those is bad we get a very similar error.

 

I would check any other layers/protocols involved with making HTTP requests over Nim and see if any of them happen to be using an old SSLv3 request..??

 

 

Angell EYE - www.angelleye.com
PayPal Partner and Certified Developer - Kudos are Greatly Appreciated!
Login to Me Too

Nexus_Software
Contributor
Contributor

Hello @jasfi,

 

On Windows this issue can be resolved by 

  1. Downloading the file at https://curl.se/ca/cacert.pem
  2. Placing the file in a folder that is in %PATH% or else in the same location as the .exe

Thank you.

 

Powered by Custom Software : NexWebSites.com
PayPal Developers

 

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.