使用密码或证书设置ocserv身份验证

时间:2018-12-19 12:30:39

标签: authentication certificate

我试图将ocserv服务器设置为使用普通密码或证书身份验证。

似乎ocserv.conf应该是:

auth = "plain[passwd=/etc/ocserv/ocpasswd]"                                     

# Specify alternative authentication methods that are sufficient                
# for authentication. That is, if set, any of the methods enabled               
# will be sufficient to login, irrespective of the main 'auth'    entries.         
# When multiple options are present, they are OR composed (any of them          
# succeeding allows login).                                                     
enable-auth = "certificate" 

但是,当我enable-auth =“ certificate”时,我无法再通过vpn服务器进行连接。它只是报告连接失败。

有什么建议吗?

0 个答案:

没有答案