Skip to content

www.namecheap.com

0.选型

image-20231201153000959

1.激活

image-20231201153017177

2.生成csr

image-20231201153029737

bash
openssl req -nodes -newkey rsa:2048 -keyout server.key -out server.csr -subj "/C=GB/ST=Yorks/L=York/O=My Company Ltd./OU=IT/CN=*.exonduty.com"
openssl req -nodes -newkey rsa:2048 -keyout server.key -out server.csr -subj "/C=GB/ST=Yorks/L=York/O=My Company Ltd./OU=IT/CN=*.exonduty.com"

红色部分,根据自己的域名修改,

把server.csr 里面内容复制到红色框里

3.解析cname

image-20231201153052158

image-20231201153109067

4.在dns上解析cname

image-20231201153211926

image-20231201153226185

5.下载证书

image-20231201153238385

image-20231201153250899

6.合并证书

bash
cat __bcwysl_com.crt __bcwysl_com.ca-bundle > bcwysl_com.crt
cat __bcwysl_com.crt __bcwysl_com.ca-bundle > bcwysl_com.crt

7.证书内容换行(有可能需要,如果配置web证书出现问题,则需要查看下crt是否有换行)

打开new.crt