The key store can be created using the class in org.bouncycastle.jce.examples.PKCS12Example - the program expects only one key to be present.