-f 后面是apiclient_key.pem的文件看看是不是文件选择错了,每个后面对应的文件或地址不要搞错了。 -k APIV3密钥-f apiclient_key.pem文件-m 商户号-s 证书序列号-o 文件生成地址
首次下载微信平台证书失败报错内容:=== download begin === Exception in thread "main" picocli.CommandLine$ExecutionException: Error while running command (com.elias.CertificateDownloader@18ef96): java.lang.IllegalArgumentException: Illegal base64 character 2d at picocli.CommandLine.executeUserObject(CommandLine.java:1738) at picocli.CommandLine.access$900(CommandLine.java:145) at picocli.CommandLine$RunLast.handle(CommandLine.java:2101) at picocli.CommandLine$RunLast.handle(CommandLine.java:2068) at picocli.CommandLine$AbstractParseResultHandler.handleParseResult(CommandLine.java:1928) at picocli.CommandLine.parseWithHandlers(CommandLine.java:2282) at picocli.CommandLine.run(CommandLine.java:2740) at picocli.CommandLine.run(CommandLine.java:2677) at com.elias.CertificateDownloader.main(CertificateDownloader.java:129) Caused by: java.lang.IllegalArgumentException: Illegal base64 character 2d at java.util.Base64$Decoder.decode0(Unknown Source) at java.util.Base64$Decoder.decode(Unknown Source) at java.util.Base64$Decoder.decode(Unknown Source) at com.wechat.pay.contrib.apache.httpclient.util.PemUtil.loadPrivateKey(PemUtil.java:36) at com.elias.CertificateDownloader.downloadCertificate(CertificateDownloader.java:55) at com.elias.CertificateDownloader.run(CertificateDownloader.java:105) at picocli.CommandLine.executeUserObject(CommandLine.java:1729) ... 8 more
2022-09-28