I’ve used KeyStore Explorer to create a JKS keystore and created a keypair in it. In my example, I am using the same password for both the JKS and for the keypair.
The certificate in PEM format
The private key in PEM format
The public key in PEM format
Main.java