我在虚拟机上安装了ocserv,但当尝试通过openconnect应用程序连接时遇到这些错误,如果有任何解决方案,尝试了各种ocserv配置文件修改,但都不成功,这将是很有帮助的
日志:
` Disconnected
STAT: attempt=O; first-NEVER; prev=NEVER
STAT: connect=o; first-NE-VER; prev=NEVER
STAT: cancel=o; first=NEVER; prev=NEVER
LIB: POST https://<IP/hostname>/
L1B: Attempting to connect to server <IP/hostname>
LIB: Connected to <IP :443/hostname>
LIB: SSL negotiation with <IP/hostname>
L1B: Server certificate verify failed: certificate does not match hostname CALLBACK: onValidatePeerCert
LIB: SSI- connection failure: The operation timed out
LIB: Failed to open HTTPS connection to <IP/hostname>
Error obtaining cookie
VPN terminated with errors`
更新:经过几次更改后,这是当前的错误信息,安装说明: Vm已经安装了debian 9,并安装了ocserv,还有证书。正在尝试使用openconnect android应用程序进行连接,设备启用了低速的移动数据。
日志:
Disconnected
STAT: attempt=O; first-NEVER; prev=NEVER
STAT: connect=o; first-NE-VER; prev=NEVER
STAT: cancel=o; first=NEVER; prev=NEVER
LIB: POST https://<IP/hostname>/
L1B: Attempting to connect to server <IP/hostname>
LIB: Connected to <IP :443/hostname>
L1B: SSL_negotiation with <IP/hostname>
L1B: SSL_connection failure: The operation timed out
L1B: Failed to open HTTPS connection to <IP/hostname>
Error obtaining cookie
VPN terminated with errors
他们有没有SSL问题?或者我是否需要给ocserv提供第三方SSL,如果需要,如何安装第三方SSL到ocserv。
提前感谢
发布于 2020-02-29 07:43:17
错误消息指出服务器的证书与其主机名不匹配。当您的客户端进行检查时,您需要使用与您用来访问服务器的主机名匹配的证书。
https://stackoverflow.com/questions/60459314
复制相似问题