More details will be added later.
From around the evening of August 11, 2020 (Japan time), the payment using the
paypal-sdk-rest gem causes the following error.
OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=error: certificate verify failed (unable to get local issuer certificate)
How to respond
Download the latest
cacert.pem from https://curl.haxx.se/docs/caextract.html, place it in
config/certs/cacert.pem and put it in
ca_file setting of
development: &default mode: sandbox client_id: xxx client_secret: xxx ssl_options: ca_file: config/certs/cacert.pem production: mode: live client_id: xxx client_secret: xxx
With this setting, we confirmed that both local development environment and production environment work as expected.
- paypal/PayPal-Ruby-SDK: Ruby SDK for PayPal RESTful APIs
- ruby on rails-OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=error: certificate verify failed (unable to get local issuer certificate)-Stack Overflow
- Remove Support of Verisign G5 Root Certificate
- curl-Extract CA Certs from Mozilla