php专区

 首页 > php专区 > PHP应用 > 开放平台 > 微信支付,使用证书时出现58错误 - 微信公众平台

微信支付,使用证书时出现58错误 - 微信公众平台

分享到:
【字体:
导读:
         [导读] 近期正在开发微信支付功能,用crul调用证书时提示类似错误 58problem with the local client certificate 经过查找手册和实验,参考php手册提供的以下方案可以解决,代码如下If you want...

  近期正在开发微信支付功能,用crul调用证书时提示类似错误

  58 problem with the local client certificate.

  经过查找手册和实验,参考php手册提供的以下方案可以解决,代码如下

If you want to connect to a server which requires that you identify yourself with a certificate, use following code. Your certificate and servers certificate are signed by an authority whose certificate is in ca.ctr. 

 

If your original certificate is in .pfx format, you have to convert it to .pem using following commands 
# openssl pkcs12 -in mycert.pfx -out mycert.key 
# openssl rsa -in mycert.key -out mycert.pem 
# openssl x509 -in mycert.key >> mycert.pem

分享到:
微信后台操作基础类管理 - 微信公众平台...
/** * Created by PhpStorm. * User: wym * Date: 15-3-18 * Time: 下午2:15 */ class Wx_function{   var $FromUsername = null;   var $ToUsername = null;   var $MsgType = null;   var $Event = null;   var $PicUrl = null;   var $EventKey = null;   var $Keyword = null;   var $...
微信支付——入门篇(转掌眼) - 微信公众...
公众号支付有2种支付方式:   JS API 支付:是指用户打开图文消息或者扫描二维码,在微信内置浏览器打开网页进行的支付。商户网页前端通过使用微信提供的 JS API,调用微信支付模块。这种方式,适合 需要在商户网页进行选购下单的购买流程。   Native(原生)支付:是指商户组成符合 Native(原生)支付规则的 URL 链...
  •         php迷,一个php技术的分享社区,专属您自己的技术摘抄本、收藏夹。
  • 在这里……