Error when trying to use REST API to connect to PayPal Sandbox
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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..??
PayPal Partner and Certified Developer - Kudos are Greatly Appreciated!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @jasfi,
On Windows this issue can be resolved by
- Downloading the file at https://curl.se/ca/cacert.pem
- 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
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Sandbox account collect billing and shipping address in Sandbox Environment
- "System error. Please try again later" when connecting to paypal sandbox account with my android app in Sandbox Environment
- NOT ENABLED TO VAULT PAYMENT SOURCE in Sandbox Environment
- p is not a function error using the example downloaded from Paypal in SDKs
- Not receiving any confirmation emails for sandbox account in Sandbox Environment