我使用的是过期的证书。我使用新的私钥和请求文件请求了新的密钥。
但是,当我向ISPConfig vhost添加新证书时,即使在运行
/usr/local/ispconfig/server/server.sh 新的证书不会被ISPConfig接受,仍然在使用过期的旧证书,所以我的网站不使用HTTPS。有没有可能ISPConfig在某个地方存储了这个旧证书?
我也删除了我的vhost中SSL文件夹的内容,但也不起作用。网站正在使用生成的“让我们加密证书”。
发布于 2019-08-15 00:19:08
我也遇到了同样的错误,我通过应用第二种方法修复了它。我已经为您提到了这两种方法。请尝试任意续订您的SSL证书。
方法1:
使用OpenSSL在shell上以根用户身份登录到您的服务器,创建一个新的ISPConfig 3SSL证书。在创建新的SSL证书之前,请备份当前证书。SSL证书是安全敏感的,因此我将备份存储在/root/文件夹中。
# tar pcfz /root/ispconfig_ssl_backup.tar.gz /usr/local/ispconfig/interface/ssl
# chmod 600 /root/ispconfig_ssl_backup.tar.gz
Now create a new SSL Certificate key, Certificate Request (csr) and a self-signed certificate.
# cd /usr/local/ispconfig/interface/ssl
# openssl genrsa -des3 -out ispserver.key 4096
# openssl req -new -key ispserver.key -out ispserver.csr
# openssl x509 -req -days 3650 -in ispserver.csr \
-signkey ispserver.key -out ispserver.crt
# openssl rsa -in ispserver.key -out ispserver.key.insecure
# mv ispserver.key ispserver.key.secure
# mv ispserver.key.insecure ispserver.key
Restart Apache to load the new SSL Certificate.
# service apache2 restart方法二:
使用ISPConfig安装程序续订SSL证书获取新SSL证书的替代方法是使用ISPConfig更新脚本。将ISPConfig下载到/tmp文件夹,解压缩归档文件并启动更新脚本。
# cd /tmp
# wget http://www.ispconfig.org/downloads/ISPConfig-3-stable.tar.gz
# tar xvfz ISPConfig-3-stable.tar.gz
# cd ispconfig3_install/install
# php -q update.php
The update script will ask the following question during the update:
Create new ISPConfig SSL certificate (yes,no) [no]:
Answer "yes" here and the SSL Certificate creation dialog will start.谢谢!
https://stackoverflow.com/questions/54518655
复制相似问题