bcprov-jdk15on-1.60.jar 配置到容器jdk环境

Colin 9月前 ⋅ 188 阅读

问题

java.lang.SecurityException: JCE cannot authenticate the provider BC

解决

复制文件

docker cp ./bcprov-jdk15on-1.60.jar workflow:/usr/java/jdk1.8.0_162/jre/lib/ext

配置jdk

echo "security.provider.x=org.bouncycastle.jce.provider.BouncyCastleProvider"  >> /usr/java/jdk1.8.0_162/jre/lib/security/java.security

全部评论: 0

    我有话说: