gpt4 book ai didi

perl - 为什么 SSL 在 Starman 中失败

转载 作者:太空宇宙 更新时间:2023-11-03 13:11:14 24 4
gpt4 key购买 nike

在启用 SSL 之前,我的设置工作正常。

这个

starman -p 3001 app.psgi

工作正常,但是:

starman --enable-ssl --ssl-cert a.crt --ssl-key a.key -p 3001 app.psgi

不会 - 产生此错误:

Could not finalize SSL connection with client handle (SSL accept attempt failed error:1407609C:SSL routines:SSL23_GET_CLIENT_HELLO:http request) 

根据每个请求。

在 AWS 的 Ubuntu 16.04.2 LTS 上运行 perl 5,版本 22,subversion 1

端口似乎转发正常:

Chain PREROUTING (policy ACCEPT)
num target prot opt source destination
1 REDIRECT tcp -- anywhere anywhere tcp dpt:https redir ports 3001
2 REDIRECT tcp -- anywhere anywhere tcp dpt:https redir ports 3001
3 REDIRECT tcp -- anywhere anywhere tcp dpt:http-alt redir ports 3001
4 REDIRECT tcp -- anywhere anywhere tcp dpt:http redir ports 3001

最佳答案

Could not finalize SSL connection with client handle (SSL accept attempt failed error:1407609C:SSL routines:SSL23_GET_CLIENT_HELLO:http request)

这表明客户端发送了 HTTP 请求而不是预期的 HTTPS 请求。请检查客户端使用的所有 URL - 它们都应该是 https:// 而不是 http:// 因为您将服务器设置为只能通过 HTTPS 访问。

关于perl - 为什么 SSL 在 Starman 中失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48275426/

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