梅林更换证书

nvram set https_crt_save=0
nvram unset https_crt_file
service restart_httpd
# 确保以下返回空
nvram get https_crt_file

将 cert.pem  和 key.pem 上传到路由器的 /etc 目录下。

chmod 666 cert.pem key.pem

nvram set https_crt_save=1
# 确保下面输出1
nvram get https_crt_save

service restart_httpd

# 如果网页没有打开https的设置,此处显示为空,否则显示证书内容
nvram get https_crt_file

reboot

你可能感兴趣的:(梅林更换证书)