How to use JKS certificate for NODE https client request

社会主义新天地 提交于 2019-12-05 13:12:45

How to use JKS certificate for NODE https client request

I don't know if there's a way to do that. But...

How can i convert the JKS to PEM ?

There is definitely a way to do that:

$ keytool -importkeystore -srckeystore keystore.jks -destkeystore keystore.p12
-deststoretype PKCS12 -srcalias <jkskeyalias> -deststorepass <password>
-destkeypass <password>
$ openssl pkcs12 -in keystore.p12  -nokeys -out public.pem
$ openssl pkcs12 -in keystore.p12  -nodes -nocerts -out private.pem
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!