标签:
Warning: openssl_sign(): supplied key param cannot be coerced into a private key
在做支付宝手机web支付的时候,遇到了上面的报错,解决步骤如下:
1.生成公钥和私钥
http://doc.open.alipay.com/doc2/detail?treeId=58&articleId=103242&docType=1
2.修改线上的公钥
https://b.alipay.com/order/pidAndKey.htm
3.把生成的公钥和私钥,替换代码中的公钥和私钥
标签:
原文地址:http://www.cnblogs.com/lizhihui/p/4914724.html