I created a .p12 keystore using openssl from a pkcs8 keystore. Now I'm trying to import the private key using java Keytool into a new JKS keystore. I tried the command:
keytool -importkeystore -srckeystore newKS.p12 -srcstoretype pkcs12 -srcstorepass pass -destkeystore exportedJks.jks -deststoretype jks -deststorepass pass
But I get the following error message:
keytool error: java.security.UnrecoverableKeyException: Get Key failed: EC KeyFactory not available
How can I resolve this error so I can import this key into a new JKS keystore?