More details will be added at a later date.
From around the evening of August 11, 2020 (Japan time), the following error began to occur when paying with the paypal-sdk-rest
gem.
OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=error: certificate verify failed (unable to get local issuer certificate)
Download the latest cacert.pem
from https://curl.haxx.se/docs/caextract.html, place it in config / certs / cacert.pem
, and in config / paypal.yml
Add the ca_file
setting for ssl_options
.
config/paypal.yml
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, it was confirmed that both the local development environment and the production environment work as expected.
-How to resolve SSL_connect error of PayPal Ruby SDK --Qiita
Recommended Posts