收藏
回答

内网部署使用可访问外网服务器代理访问微信服务器响应证书无效?

B(1,2,3) 通过A/wx/api 访问微信服务器,微信响应证书无效,想请问大佬们有没有什么方案?

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

1 个回答

  • 软件之家(15374363882)
    软件之家(15374363882)
    2021-06-01

    请问一下从小程序里面申请的证书提示证书无效是什么原因呢?

    {"data":[{"effective_time":"2021-05-29T22:17:02+08:00","encrypt_certificate":{"algorithm":"AEAD_AES_256_GCM","associated_data":"certificate","ciphertext":"8gihu4hl8o4oURyA89iWmVCmyJs00aZaY+S5NIjqKdAqO+99ywYK0L4DW597/pQ73m0V+mOmT9Vrr6WjawZzjir+Bs/EngjIRLUhcDLaTSDx2IgiOaGvRLS11Ss1ixo4xosCAVmj4ECHbvpzLJrSXRg8t9eeOrMVHTpKKtDGf2uE+dyyi9T5vlYiHO0+2VsYLUmAWXfl+p2gvmwPkdTTviG3illuuj+/f7IZxQNKw+C9F3ig8c7uS5J1+t87V8OWSiDMSisOP/pkPbgD291keXzOjj/x/fB0LYUOdRz1ARNDndRGN6nN6dwoZJoHmj0+XuMmjxxxvyd9m5WOqmGlO4Rb+5nN68NsT4OAGf0HoQ8gv9Ig5RIAlAmxJmxsuGte0xVZq7pZfltK367jWQAfqk8viAjXjhJ8ggWy6JTwZGcyBWAflVwrcvjnZk+VwGAalkpGBOfWPYU75d1/K1inck1DWxXFKhCxp7q62hy5q4ebJ4EqGqPK5xCfsVwnMrcwQEqU9OATMHPWlsbyTE/aHYGGwEInAVDKbojLclT/vX/Om0yvkbxxccQLdsfqy5Jji34R3XhWnNwAD0Cg5RxTEq2GnztsSKyXETNY5wQO1MWzAFZM9Zf+F8qZp2CxwNr8X7rY9VxEc/+itPZFD7fLNbg2So5m8ym41DTdpFCewWaKHOMWFl4A9mfV61JnL/Y/v2iP+stmOtx7Xs+6ptBdz24tqbRs6wwlBNLkW49SWPz/7ESJoECumK6E1MNYNCIIlaGP4dUFGueuW2SmL5TVKXhUPFGC+z4LsKjEUBG1o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rhQ==","nonce":"d2a6a0345985"},"expire_time":"2026-05-28T22:17:02+08:00","serial_no":"5A6E5E82001F58B1DC88A73A0A79606977A17BC1"}]}

    java.lang.RuntimeException: 无效的证书

    at com.wechat.pay.contrib.apache.httpclient.util.PemUtil.loadCertificate(PemUtil.java:57)

    2021-06-01
    有用
    回复
登录 后发表内容