SSL证书

PEM和KEY

PEM包含两个

一个是服务商给你颁发的SSL证书代码

OUR SSL CERTIFICATE
\--------------------------------------------------
(Formatted for the majority of web server software including IIS and Apache
based servers):
-----BEGIN CERTIFICATE-----
XXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXX
-----END CERTIFICATE-----

另外一个是SSL中级证书代码

在服务商里面找

image-20201227105126245

合在一起就是
-----BEGIN CERTIFICATE-----
XXXXXXXXXXXXXXXXXXXXX
XXXXXXX自己证书XXXXXXXX
XXXXXXXXXXXXXXXXXXXXX
-----END CERTIFICATE-----

-----BEGIN CERTIFICATE-----
XXXXXXXXXXXXXXXXXXXXX
XXXXXXX中级证书XXXXXXXX
XXXXXXXXXXXXXXXXXXXXX
-----END CERTIFICATE-----

KEY是CSR生成的第二个私钥
image-20201227105247695

CSR和KEY和CRT

CSR是CSR生成的第一个

KEY是CSR生成的第二个

CRT是服务商颁发给你的SSL证书代码加上服务商的SSL中级证书代码