.key转换成.pem格式

openssl rsa -in www.xx.com.key -out key.pem

.crt转换成.pem

openssl x509 -in tmp.crt -out tmp.pem

参考来源: