JavaEar 专注于收集分享传播有价值的技术资料

java.security.KeyStoreException: BKS not found

I am new to SSL certification generation, I have generated the SSL certification of type BKS. but during the Jboss starting i am getting the exception: -saying "java.security.KeyStoreException: BKS not found". The below are the steps i am doing to create the keystore file.

keytool -genkey -alias abcd -keystore C:/abcd.keystore -storepass abcd -storetype BKS -provider org.bouncycastle.jce.provider.BouncyCastleProvider -providerpath c:/bcpkix-jdk15on-147.jar

I am using JBoss 4.2.3 GA.

Please help me out to resolve this issue.

Thank You, Pruthvi

3个回答

    最佳答案
  1. Error "BKS not found" would mean that its looking for an alias named BKS. Can you pass on the actual error and also the details of the ssl connector definition (server.xml) ?

  2. 参考答案2
  3. Make sure you follow these steps

    http://docs.jboss.org/jbossweb/3.0.x/ssl-howto.html
    
  4. 参考答案3
  5. You can try to add the provider into the java.security file as described in Different types of keystore in Java -- BKS

    security.provider.N=org.bouncycastle.jce.provider.BouncyCastleProvider

    N means the provider index in the provider list.