1.      通过阿里云免费购买证书。

阿里云centos下apache替换ssl证书

2.      得到如下文件

214582736923654.key 214582736923654.pemchain.pem public.pem

其中214582736923654为订单号

3.      查看/etc/httpd/conf.d/ssl.conf文件,查看要替换的文件及位置,如图所示:

阿里云centos下apache替换ssl证书

4.      上传上述证书文件到服务器。

5.      修改/etc/httpd/conf.d/ssl.conf文件,修改下面的订单号为新生成的订单号:

阿里云centos下apache替换ssl证书

6.      重启Apache,命令为:/usr/sbin/httpd -k restart。

7.      访问网页,并查看证书有效期。

阿里云centos下apache替换ssl证书

阿里云centos下apache替换ssl证书

 


相关文章:

  • 2021-12-31
  • 2021-11-09
  • 2022-02-05
  • 2021-10-02
  • 2022-01-25
  • 2021-12-02
猜你喜欢
  • 2021-12-12
  • 2021-07-23
  • 2021-12-19
  • 2021-11-19
  • 2021-12-29
  • 2021-12-21
相关资源
相似解决方案