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
ystore server3.private -storetype BKS -keyalg rsa -dname "CN=Your Name, OU=Your
Organizational Unit, O=Your Organization, L=Your City, S=Your State, C=Your Coun
try" -storepass tahirpw -keypass tahirpw
it gives me error
keytool error: java.security.KeyStoreException: BKS not found
Best Answer
Your error indicates that
keytool
tries to instantiate aBKS
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:
install this provider with Java. Oracle published along with Java a comprehensive documentation.
pass to keytool the suitable options to indicate which CSP should be used and its location: