OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=error: certificate verify failed (unable to get local issuer certificate)

后端 未结 5 912
遇见更好的自我
遇见更好的自我 2021-02-12 23:49

There are a ton of posts about this. I have looked at so many of them. Zero of the fixes seem to work.

(main)> PayPal:         


        
5条回答
  •  猫巷女王i
    2021-02-13 00:01

    As PayPal has changed TLS, so the easiest way (fastest) was to resolve as monkey patch. This patch says to use all default settings

    module PayPal::SDK::Core
      module Util
        module HTTPHelper
          def configure_ssl(http)
            http.tap do |https|
              https.use_ssl = true
              https.verify_mode = OpenSSL::SSL::VERIFY_PEER
              add_certificate(https)
            end
          end
        end
      end
    end
    

提交回复
热议问题