1.加载商户私钥(privateKey:私钥字符串)
这个私钥是下载证书的的:apiclient_key.pem
2.转换下单时的证书
文档:https://github.com/wechatpay-apiv3/CertificateDownloader
执行命令:
java -jar CertificateDownloader.jar -k ${apiV3key} -m ${mchId} -f ${mchPrivateKeyFilePath} -s ${mchSerialNo} -o ${outputFilePath} -c ${wechatpayCertificateFilePath}
java -jar CertificateDownloader.jar -k 54168dfa526258a302e95fa52d204752 -m 163193XXX -f F:\wxcert\163193XXX_20230109_cert\apiclient_key.pem -s 34FC2D06F9672B98326054B047AEB4FB5E822924 -o F:\wxcert
jar包下载:CertificateDownloader.jar
链接:https://pan.baidu.com/s/1ntLciyYXrmMRuv3Xsg2Tlg?pwd=1234
提取码:1234
执行命令成功如图:
得到可用的支付证书:wechatpay_64E3DEACED1A56458227389AD23A0F6XXXX.pem
完美!
标签:1234,APIV3,CertificateDownloader,证书,微信,jar,pem,私钥 From: https://www.cnblogs.com/newAndHui/p/17037726.html