将pem证书转换为crt/key

1.pem转crt格式
openssl x509 -in fullchain.pem -out fullchain.crt

具体用法为:
cd ..
openssl
x509 -in /etc/letsencrypt/archive/domain/fullchain1.pem -out /etc/letsencrypt/archive/domain/fullchain1.crt
然后在这个路径找到转换好的证书/etc/letsencrypt/archive/domain

2.pem转key格式
openssl rsa -in privkey.pem -out privkey.key

具体用法为:
cd ..
openssl
rsa -in /etc/letsencrypt/archive/domain/privkey1.pem -out /etc/letsencrypt/archive/domain/privkey1.key
然后在这个路径找到转换好的证书/etc/letsencrypt/archive/domain
 cert证书LinuxNginx

你可能感兴趣的:(企业集群架构学习,nginx)