I have a JKS keystore with a couple of certicates signed by CA.
I would like to convert this jks file to PCKS12, however TrustedCertEntry
s cannot be converted using the Java keytool because they are not supported. How would I convert this jks file to, say, PCKS12 ?
I have looked for similar questions on SO, and this is what I have found:
However, this did not seem to work for me, as the conversion failed at this step
C:\Temp>openssl x509 -in exported-der.crt -out exported-pem.crt
-outform pem -inform der
due to this error
[...]PEM routines:PEM_read_bio:no start line:[...]
because it seems to be encrypted or something along those lines.
Try following changes in your command
Documentation says
DER|PEM|NET
as valid value, notpem
order
.