I am trying to add my .pfx file to JKS using keytool command and its working with keys generated using RSA but not with keys generated using dilithium algorithm
command : keytool -importkeystore -srckeystore combined.pfx -srcstoretype PKCS12 -destkeystore keystore.jks
error : keytool error: java.security.UnrecoverableKeyException: Get Key failed: 1.3.6.1.4.1.2.267.7.8.7 KeyFactory not available
It is possible to create a JKS keystores using dilithium3 post quantum algorithm. You need to have bouncycastle bcprov-jdk180n latest version Jar to be used as provider.