stunnel3:[!] Inetd 模式:TLS 服务器需要证书[!] 配置失败

stunnel3:[!] Inetd 模式:TLS 服务器需要证书[!] 配置失败

我正在尝试配置并启动 stunnel3,但每次我都得到

[!] Inetd mode: TLS server needs a certificate
[!] Configuration failed

隧道配置文件

cert = /pathto/server.pem
key = /pathto/server.key
client = no
fips = no
sslVersion = all
socket = l:TCP_NODELAY=1
socket = r:TCP_NODELAY=1

[stunnel]
accept = 82
connect = 81

我错过了什么?

答案1

我用这个命令修复了它

stunnel /pathtowhereisconfig文件/stunnel.conf

然后它起作用了

我还需要将 .pem(由 stunnel 安装生成)分离为 .crt 和 .key 并放入配置文件中

cert = /etc/stunnel/stunnel.crt
key = /etc/stunnel/stunnel.key

相关内容