I created Java keystore programmatically of type jks (i.e. default type). It is initially empty so I created a DSA certificate.
keytool -genkey -alias
You can use keystore-explorer.