我最近从123-reg.co.uk的旧web服务器移动了一个网站到一个Linode的新Linode网络服务器。Debian 8 - SSL证书不起作用
我使用Debian 8.9运行Apache。
123-reg向我提供了我的网站的SSL证书,当我将网站移动到新的服务器时,该证书被取消激活。所以我开始在我的新服务器上手动重新激活证书。
我能够从123-REG获得必要的SSL文件(CA捆绑,密钥和证书),我跟着的Linode的说明安装使用以下教程自己的服务器上的SSL证书:
First tutorial和 second tutorial 。
下面是该网站的配置文件:
<VirtualHost *:80>
# All of the files here exist on the server
SSLEngine On
SSLCertificateFile /etc/ssl/certs/zetec-it.com.crt
SSLCertificateKeyFile /etc/ssl/private/zetec-it.com.key
SSLCACertificateFile /etc/ssl/certs/ca-certificates.crt
ServerAdmin [email protected]
ServerName zetec-it.com
ServerAlias www.zetec-it.com
DirectoryIndex index.html index.php
DocumentRoot /var/www/html/zetec-it.com/public_html
LogLevel warn
ErrorLog /var/www/html/zetec-it.com/log/error.log
CustomLog /var/www/html/zetec-it.com/log/access.log combined
</VirtualHost>
的设置似乎是合法的,但是当我尝试通过https
访问该网站的浏览器指出,连接不牢固。
我对服务器管理员来说相当陌生;有没有人有任何建议或潜在的解决方案?
''你正在绑定你的SSL连接到端口80.你应该使用端口443. –
@JonasSchwabe你是我的上帝英雄,我可以吻你! – AdamMcquiff
@JonasSchwabe奇怪的是,这样做导致我的网站重定向到我的服务器上托管的另一个站点,你知道为什么吗? – AdamMcquiff