如何使用 Sagepay Opayo 修复 OpenSSL 错误

问题描述

Opayo 更改了导致错误的 Live SSL 环境 -

SSL operation Failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify Failed; Try to connect to: https://live.sagepay.com:443/gateway/service/vspdirect-register.vsp

问题在他们的support monitor page -

24 march 2021 - 15:57
Our development teams have updated our security certificates in our Live environment.

Some vendors may experience SSL certificate issues related to this,this will require you to ‘pull’ the latest root certificate in order to resolve this.

You can access our site (https://live.sagepay.com/mysagepay/login.msp) in a browser and pull the latest root certificate down for this.

Apologies for any disruption this may have caused.

没有任何关于拉取哪个证书的信息,或者拉取后如何处理!他们的登录页面有 3 个证书,均带有证书和链。

我下载哪个 SSL 以及在拉取后如何处理?

解决方法

希望您已经设法找到了底部或这个,但是如果没有,那么您需要找到一种方法来更新服务器的受信任根证书。

解决此问题的最佳方法是与您的托管服务提供商联系,因为他们最好就您的特定环境提供建议。

如果您的服务器的根证书是最新的并且问题仍然存在,这意味着尝试建立连接的软件(例如 cURL 或 PHP)无法访问具有相关可信证书的文件夹或文件。同样,您的托管服务提供商或网络开发人员应该能够对此进行诊断。

您在信任库中需要的证书是“Entrust Root Certification Authority - G2” 指纹SHA256:43df5774b03e7fef5fe40d931a7bedf1bb2e6b42738c4e6d3841103d3aa7f339 引脚 SHA256:du6FkDdMcVQ3u8prumAo6t3i3G27uMP2EOhR8R0at/U= Certificate analysis of sagepay

始终建议拥有一个包含最新根证书的有效信任库,以确保您的应用可以安全地与网站和 API 通信。