我'm trying to add an SSL certificate to a site on a LAMP VM on Google Cloud. I' ve从https://www.sslforfree.com/生成了证书 .
非SSL版本的网站运行正常,我已经将SSL mod添加到Apache并可以启动Apache:
<VirtualHost *:443>
ServerAdmin webmaster@localhost
DocumentRoot /home/info/pub
<Directory /home/info/pub>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
Require all granted
</Directory>
SSLEngine On
SSLCertificateFile /home/info/ssl/se.crt
SSLCertificateKeyFile /home/info/ssl/se.key
SSLCertificateChainFile /home/info/ssl/se.ca
</VirtualHost>
在Cloud面板中的Networking下,我看到以下内容:lamp-1-tcp-443 Ingress lamp-1-tcp-443 IP范围:0.0.0.0/0 tcp:443允许1000
虽然尝试访问网站的https://版本时,firefox会响应(从复制/粘贴中删除的URL):安全连接失败
连接到[URL省略]时发生错误 . SSL收到的记录超过了允许的最大长度 . 错误代码:SSL_ERROR_RX_RECORD_TOO_LONG
在Chromium中也发生了同样的事情:此站点无法提供安全连接
[URL省略]发送了无效的响应 . ERR_SSL_PROTOCOL_ERROR
我真的不知道是什么原因引起的 .