How to convert trust certificate from .jks to .pem?

前端 未结 2 603
执笔经年
执笔经年 2020-12-31 08:44

I have a Java SSL server to which I want my Java SSL client and C++ SSL client to be able to connect. The Java client connects without issues. Now I want to have my C++ SSL

2条回答
  •  佛祖请我去吃肉
    2020-12-31 09:04

    The following simple single line command will export the certificate to PEM format. Yes, you need openssl, keytool alone can't do this.

    keytool -exportcert -alias  -keystore  | openssl x509 -inform DER >cert.pem
    

提交回复
热议问题