我主要尝试通过 CURL/PHP 连接到第三方,但由于它不起作用,我求助于更详细的工具来诊断问题。
如果我在 Ubuntu 14.04 LTS 上尝试以下操作:
openssl s_client -showcerts -connect secure.thirdpartyhost.com:443 -cert production_client.pem -key production_key.pem -CApath /etc/ssl/certs
Run Code Online (Sandbox Code Playgroud)
它因以下错误而失败:
CONNECTED(00000003)
depth=2 C = US, O = "Entrust, Inc.", OU = See www.entrust.net/legal-terms, OU = "(c) 2009 Entrust, Inc. - for authorized use only", CN = Entrust Root Certification Authority - G2
verify return:1
depth=1 C = US, O = "Entrust, Inc.", OU = See www.entrust.net/legal-terms, OU = "(c) 2012 Entrust, Inc. - for authorized use only", CN = Entrust …
Run Code Online (Sandbox Code Playgroud)