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

前端 未结 1 1427
悲&欢浪女
悲&欢浪女 2021-01-21 01:11

how to create a .bks keystore in java sun keytool, what should i do?

C:\\Program Files\\Java\\jdk1.6.0\\jre\\bin>keytool -genkey -alias server3private -ke
yst         


        
相关标签:
1条回答
  • 2021-01-21 01:30

    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
    
    0 讨论(0)
提交回复
热议问题