My goal is to generate a certificate, export it in a file and import in JDK keystore.
In first step I have generated a self signed certificate using
I have got this sorted out. I was using my password that is 'password' to update cacerts keystore in JDK while default password for cacerts keystore is 'changeit'