最近想通过J2OBJC来转换bouncycastle包,发现通过源码来打成jar包导入项目会报错:
JCE cannot authenticate the provider BC
通过资料查找,发现如下:
all JCE provider JARs must be signed before they will be trusted by your Java runtime.
BouncyCastle dutifully supplies signed JARs that will work without a problem. However, if you extract class files from this JAR, or recompile the source, it will remove the signature and cause Java to reject the code.
也就是说我们另外打包后并没有签名.
本文探讨了使用J2ObjC转换BouncyCastle包时遇到的JCE无法验证提供者BC的问题。深入分析了签名缺失的原因,并强调了重新打包后必须进行签名的重要性。
623

被折叠的 条评论
为什么被折叠?



