方法很简单的啦. 直接调用openssl的命令行: openssl x509 -in certificate.crt -inform DER -out certificate.pem -outform PEM