收藏
回答

"message":"证书不存在" 用官方phpsdk下载证书提示

用平台公钥 和平台公钥id 下载证书提示

*   Trying 240e:e1:aa00:1004::17:443...

* Immediate connect fail for 240e:e1:aa00:1004::17: Network is unreachable

*   Trying 240e:e1:aa00:4000::94:443...

* Immediate connect fail for 240e:e1:aa00:4000::94: Network is unreachable

*   Trying 101.226.137.13:443...

* Connected to api.mch.weixin.qq.com (101.226.137.13) port 443 (#0)

* ALPN, offering http/1.1

* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH

* successfully set certificate verify locations:

*   CAfile: /etc/pki/tls/certs/ca-bundle.crt

  CApath: none

* SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384

* ALPN, server accepted to use http/1.1

* Server certificate:

*  subject: C=CN; ST=Guangdong Province; L=Shenzhen; O=Tenpay Technology Company Limited; CN=payapp.weixin.qq.com

*  start date: May 14 00:00:00 2024 GMT

*  expire date: May 13 23:59:59 2025 GMT

*  subjectAltName: host "api.mch.weixin.qq.com" matched cert's "*.mch.weixin.qq.com"

*  issuer: C=US; O=DigiCert Inc; CN=DigiCert Secure Site CN CA G3

*  SSL certificate verify ok.

> GET /v3/certificates HTTP/1.1

Host: api.mch.weixin.qq.com

Accept: application/json, text/plain, application/x-gzip, application/pdf, image/png, image/*;q=0.5

Content-Type: application/json; charset=utf-8

User-Agent: wechatpay-php/1.4.9 GuzzleHttp/7 curl/7.70.0 (Linux/3.10.0-1160.105.1.el7.x86_64) PHP/7.4.33

Authorization: WECHATPAY2-SHA256-RSA2048 mchid="1697286345",serial_no="xxxxx",timestamp="1730279376",nonce_str="ne3TEVPWAX0DDgHHU62LVDz2XVLvHkI2",signature="HmvJx1cnaB3crhQUXrF6tnKVo00G8NHWvSh2673wJcncYceIUnpQKjid9a1bfr2O8j7pT4vbSdYNiGJV+ROSL7IljEmzopZXsubVTVoBRPvFwP88SRZorvj6sdWw6ZItJXMKM3CwhVh098bIduHOG6NI7FamI2LIFJa1+k7mWzN8Zs0WYk+SFejvNZbeCMfz3GmEfSuVTW3chtmTBJbsk1FUU8lJWM3bCiBzfBxec30Ag0mPaxIahBXR7LZZMnHP6mcWfTXPG31l6uNRqYmpnRLZRd3rb7pJz0PxBSP9FTer2KTTRL7aay9hgv6zj1VHlQ0aFeJUgjA9QhhTy7OMCA=="


* Mark bundle as not supporting multiuse

< HTTP/1.1 404 Not Found

< Server: nginx

< Date: Wed, 30 Oct 2024 09:09:36 GMT

< Content-Type: application/json; charset=utf-8

< Content-Length: 58

< Connection: keep-alive

< Keep-Alive: timeout=8

< Cache-Control: no-cache, must-revalidate

< X-Content-Type-Options: nosniff

< Request-ID: 08D0EF87B90610980118A1D2EDF50120D31328B88A06-269542942

< Content-Language: zh-CN

< Wechatpay-Nonce: 90c462d55cf20ccb6a01cf0d065f115b

< Wechatpay-Signature: j6Ska3/AxHa8XOMIyhs7sdnp9xlWbgxqnOwcKB+/tnXY4RDefsvnc/wwQGtWmknCeUCj+eVJP7ByaXJ6bBCcSTOdSbd8JDNmLj+vzh7+4dx0I72bBNucVvTCyvcvDzA4HYksUTjKvoiDIMr1ke4vnA4TChlR2+pcxs6NMnlWueMaW2AWxRLSwXhEqtDHmwL3IsIpxHbIvPYcqoIi9cXFb/ye0X/dwKnY8eh4Bzaru7kEHcc8QKW4viQD6zmyc89pVH97qxDvGzQ4oUUQJWZdkmbiEWFwRyqUzXPK/QZQVFU3/Bc0JxhtBn6ia/jujdDMJMz8VATNgQvZQ/K9TvIopA==

< Wechatpay-Timestamp: 1730279376

< Wechatpay-Serial: PUB_KEY_ID_xxxxxxxx

< Wechatpay-Signature-Type: WECHATPAY2-SHA256-RSA2048

* Connectio #0 to host api.mch.weixin.qq.com left intact

string(165) "Client error: `GET https://api.mch.weixin.qq.com/v3/certificates` resulted in a `404 Not Found` response:

{"code":"RESOURCE_NOT_EXISTS","message":"证书不存在"}


回答关注问题邀请回答
收藏

3 个回答

登录 后发表内容