我在对特技:SSL到SSL?(适用于smtp/imap)的答复中指定了一个SSL证书,并具有以下配置文件:
cert = /home/marshall/stunnels/certs/umistunnel.keys
; protocol version (all, SSLv2, SSLv3, TLSv1)
sslVersion = SSLv3
pid = ./stunnel4.pid
[https]
accept = 4433
connect = 3000当我跑的时候
> stunnel config.conf我得到的错误是:
Reading configuration from descriptor 3
Snagged 64 random bytes from /home/marshall/.rnd
Wrote 1024 new random bytes to /home/marshall/.rnd
PRNG seeded successfully
Line 1: End of section stunnel: SSL server needs a certificate如果我选择:
> stunnel filethatdoesnotexist.asdf我也得到了同样的结果。而且,如果我在没有任何参数的情况下运行替身,唯一的改变就是错误状态为第0行。我在这里做错什么了?
发布于 2012-09-05 18:20:12
发现我的问题..。它并没有真正的文档化(至少在我的Ubuntu系统上)。如果我运行命令
> stunnel4 config.conf然后一切正常工作,所有输出都显示在调试日志文件中(如果配置在配置文件中)。
发布于 2013-01-13 20:11:26
您的系统上可能同时安装了stunnel3和stunnel4。
默认的“特技”是将其软链接到stunnel3:
root@sibelius:/usr/bin# ls -l stunnel*
lrwxrwxrwx 1 root root 8 Oct 18 2011 stunnel -> stunnel3
-rwxr-xr-x 1 root root 2797 Oct 18 2011 stunnel3
-rwxr-xr-x 1 root root 109904 Oct 18 2011 stunnel4stunnel.conf for stunnel3的语法与stunnel4的语法不兼容。
因此出现了错误。尝试删除stunnel3。
发布于 2012-09-05 16:41:50
将证书行也放在https中。
https://serverfault.com/questions/424619
复制相似问题