How to convert CER to JKS??

3,759 views
Skip to first unread message

Marcio Rayane

unread,
Nov 24, 2016, 1:07:48 PM11/24/16
to kurento
Hi Ivan, ai try create new keystore.jks with my certificate file trusted, but don't works

keytool -import -trustcacerts -alias mydomain -file mydomain.cer -keystore mydomain.jks

I can help-me to this?

Thank you.

Marcio Rayane

unread,
Nov 24, 2016, 1:51:19 PM11/24/16
to kurento

I got it :D

Export CRT to P12

openssl pkcs12 -export -in servercret.pem -inkey server.pem -certfile servercret.pem -out testkeystore.p12
Create JKS from P12
keytool -importkeystore -srckeystore testkeystore.p12 -srcstoretype pkcs12 -destkeystore wso2carbon.jks -deststoretype JKS
Change JKS alias, by default alias is 1

keytool -changealias -keystore [path to key store] -alias [current alias]

thanks to everything.
Reply all
Reply to author
Forward
0 new messages