从 cpanel 修复 ssl_error_rx_record_too_long
我已经多次看到这个问题,但所有答案都无法帮助我,因为我只租用了服务器空间并且无法管理它。
我执行了以下操作:
我从 PositiveSSL 购买了域名和 ssl 证书
我购买了具有专用 IP 的托管空间
我只有 cpanel 可以访问 SSL/TLS Manager
我已经创建了 CSR 和所有内容,并添加并验证了证书并获得了它。
然后我通过 SSL/TLS 管理器添加了它,它应该可以正常工作。
现在的问题是:
当我尝试使用 https://www.mysite.com
打开网站时,出现此错误:
Secure Connection Failed
An error occurred during a connection to www.mysite.com.
SSL received a record that exceeded the maximum permissible length.
(Error code: ssl_error_rx_record_too_long)
在这种情况下我该怎么办?我的托管提供商几乎不了解 SSL,也不再帮助我:( 所以我只能访问 cpanel 和 SSL/TLS 管理器。
我尝试重新安装很多次,但错误仍然存在。
I've seen this question many times but all answers can't help me because I only rented server space and am not able to administer it.
I did the following:
I've bought a domain and ssl certificate from PositiveSSL
I've bought hosting space with a dedicated IP
I' only have cpanel with access to SSL/TLS Manager
I've created the CSR and everything and added and verified the certificate and got it.
I've then added it through SSL/TLS Manager and it should be working fine.
Now the problem:
When I try to open the website using https://www.mysite.com
I get this error:
Secure Connection Failed
An error occurred during a connection to www.mysite.com.
SSL received a record that exceeded the maximum permissible length.
(Error code: ssl_error_rx_record_too_long)
What can I do in this case? My hosting provider has almost no idea about SSL and won't help me anymore :( so I only have access to cpanel and SSL/TLS Manager.
I've tried to reinstall it many times but the error stays.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
SSL 证书需要 cpanel 环境上的保留 IP。由于您只能访问您的 cpanel 而不能访问 WHM,这意味着您处于共享托管环境中。这意味着您的网站使用服务器共享/主IP。
解决方案:要求您的网络托管商通过 ssl 为您的域提供专用 IP 从
技术上讲,还有另一种解决方案,但他们会说“不”:向您的网络托管商提供 crt 并要求他通过 WHM 安装它,他们必须将 ssl vhost 重置为无人。这就是他们会说“不”的地方!
当他们将 crt 内容粘贴到正确的字段中以安装您的 ssl 时,他们将单击“获取”,这将在下面的字段中加载您的私钥和 CA(如果有)。最重要的是 crt 字段下方的 2 个字段:IP 和用户。在共享托管 CPANEL 中,每个域/网站脚本都将在其对应的用户下运行。 Cpanel 不允许用户在共享 IP 上运行 ssl 虚拟主机(cpanel 已将其用于自己的自签名证书)。 web_hosters 需要知道哪个用户/正在使用多少资源。
干杯!
SSl certificate will require a reserved IP on cpanel environment. As you have only access to your cpanel and not WHM, this mean you are on shared hosting environment. Which means your websites use the server shared/main IP.
solution: Ask your web-hoster to provide you with a dedicated IP for your domain with ssl
Technicaly, there is another solution, but they will say NO : Provide your web-hoster with the crt and ask him to install it trough WHM, they will have to reset the ssl vhost to nobody. This is where they will say NO!
when they will paste the crt content in the proper field to install your ssl, they wil click "fetch" this will load you private key and CA (if any) in the fields bellow. The most important are 2 fields just underneath the crt field: IP and user. In shared hosting CPANEL, each domain/website scripts will run under its correspondent user. Cpanel will not allow a user to run an ssl vhost on shared IP (cpanel is already using it for its own self signed certificate). The web_hosters need to know which user / is using how much ressources.
Cheers!
该错误可能是由于多种原因造成的
a) https 连接的端口号未开放
b) 私钥与公钥不匹配
The error can be due to multiple reasons
a) The Port number for https connection is not open
b) The private key does not match with the public key