2017-01-10 75 views
0

我有一个上周工作正常的Stunnel服务器配置。看起来在sudo apt-get update && sudo apt-get upgrade之后不再是这种情况了。如何修复Stunnel服务器上的“服务[XXX]:SSL服务器需要证书”?

版本:

$ ls -la /usr/bin/stunnel 
?????????? 1 root root 8 Xxx XX 2016 /usr/bin/stunnel -> stunnel4 
$ stunnel -version 
stunnel 5.30 on x86_64-pc-linux-gnu platform 
Compiled with OpenSSL 1.0.2e 3 Dec 2015 
Running with OpenSSL 1.0.2g 1 Mar 2016 
Update OpenSSL shared libraries or rebuild stunnel 

这是我的服务器stunnel.conf

verify = 2 
debug = 7 
output = stunnel.log 
options = NO_SSLv3 

[XXX] 
client = no 
verify = 0 
accept = 9888 
connect = localhost:9879 
key = path/to/file.key 
CAfile = path/to/ca.pem 

在他之前的工作,现在给到以下错误:

$ sudo stunnel stunnel.conf 
[ ] Initializing service [XXX] 
[!] Service [XXX]: SSL server needs a certificate 

为什么我现在需要证书?这不是服务器吗?我已经提供了一个私钥和CA证书,认为这已经足够了。

请纠正我,如果我错了,但我觉得安全通道服务器不需要客户上的配置证书,以启动一个会话监听。

不管是什么问题。我感谢任何帮助。

回答

0

我把它固定,通过改变CAfilecert

[XXX] 
... 
cert = path/to/ca.pem