gpt4 book ai didi

ssl - Lighttpd SSL 错误

转载 作者:太空宇宙 更新时间:2023-11-03 12:50:25 26 4
gpt4 key购买 nike

我正在尝试为我的 lighttpd 服务器设置 SSL。lighttpd -v 显示:lighttpd/1.4.26 (ssl) - 轻便快速的网络服务器

  1. 我创建了 server.pem 文件。
  2. 我将以下几行添加到 lighttpd.conf$SERVER["套接字"] == ":443"{ssl.engine = "启用"ssl.pemfile = "/etc/lighttpd/certs/server.pem"}
  3. 我重新启动服务器,一切正常。
  4. 我运行:openssl s_client -connect mydomain.com:443 并得到响应:CONNECTED(00000003)......没有错误,什么都没有

  5. 但是当我想通过浏览器访问 mydomain.com:443 时失败了,在 error.log 中我可以看到:

    (connections.c.294) SSL: 1 错误:1407609C:SSL 例程:SSL23_GET_CLIENT_HELLO:http 请求

任何人都可以帮助解决这个问题,因为我真的不知道哪里会出现问题而且我不是 linux 人,我只需要在网络服务器上设置 ssl。谢谢

最佳答案

确保打开 https://mydomain.com/而不是 http://mydomain.com:443/ .如果您使用正确的协议(protocol)(https 而不是 http),则不需要寻址端口,除非您使用非标准端口(http=80;https=443)。

关于ssl - Lighttpd SSL 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20047840/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com