keytool error: java.security.KeyStoreException: BKS not found

纵饮孤独 提交于 2019-12-02 02:19:55

Your error indicates that keytool tries to instantiate a BKS keystore but no Cryptographic Service Provider (CSP) is able to provide such an implementation. BKS keystore type is a type implemented by the BouncyCastle CSP.

Therefore there is 2 solutions:

  1. install this provider with Java. Oracle published along with Java a comprehensive documentation.

  2. pass to keytool the suitable options to indicate which CSP should be used and its location:

-storetype BKS                                               <- keystore type
-provider org.bouncycastle.jce.provider.BouncyCastleProvider <- CSP implementation
-providerpath /path/to/bouncycastle.jar                      <- Path to the CSP jar file
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!