报错内容:=== 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
我也遇到了这个问题,Mac 电脑,最后通过这几个帖子解决的:
https://www.cxyck.com/article/130669.html
https://blog.csdn.net/vtopqx/article/details/123528061
有问题欢迎交流,微信里搜索我的昵称就可以找到我,一起交流技术。
-f 后面是apiclient_key.pem的文件看看是不是文件选择错了,每个后面对应的文件或地址不要搞错了。
请问这个问题解决了么? 怎么解决的
你们跟支付宝真是隔了几条街