1.先登录阿里云的数字证书管理服务/SSL 证书,若想不花钱重新生成一张,只能3个月
2.依次在邮箱服务器前端替换
172.16.101.232、233
[root@mailapp1 conf]# pwd
/home/coremail/conf
[root@mailapp1 conf]# ll mail.gubotire.com.*
-rw-r--r-- 1 coremail coremail 1675 Jun 13 2023 mail.gubotire.com.key
-rw-r--r-- 1 coremail coremail 3809 Jun 13 2023 mail.gubotire.com.pem
[root@mailapp1 conf]# rm mail.gubotire.com.*
rm: remove regular file ‘mail.gubotire.com.key’? y
rm: remove regular file ‘mail.gubotire.com.pem’? y
[root@mailapp1 conf]# rz
rz waiting to receive.
Starting zmodem transfer. Press Ctrl+C to cancel.
Transferring mail.gubotire.com.key...
100% 1 KB 1 KB/sec 00:00:01 0 Errors
Transferring mail.gubotire.com.pem...
100% 3 KB 3 KB/sec 00:00:01 0 Errors
[root@mailapp1 conf]# /home/coremail/sbin/nginx -s reload
访问测试:mail.gubotire.com
3.网站服务器替换
47.104.235.61
[root@guboluntai ~]# cd /etc/nginx/
[root@guboluntai nginx]# rm www.gubotire.com.*
rm: remove regular file 'www.gubotire.com.key'? y
rm: remove regular file 'www.gubotire.com.pem'? y
[root@guboluntai nginx]# rz
rz waiting to receive.
Starting zmodem transfer. Press Ctrl+C to cancel.
Transferring www.gubotire.com.key...
100% 1 KB 1 KB/sec 00:00:01 0 Errors
Transferring www.gubotire.com.pem...
100% 3 KB 3 KB/sec 00:00:01 0 Errors
[root@guboluntai nginx]# systemctl reload nginx
访问测试:www.gubotire.com