iw4p / OpenConnect-Cisco-AnyConnect-VPN-Server-OneKey-ocserv

[Script and Docker 🐳] OpenConnect (Cisco AnyConnect) VPN Server (OCServ) script one key easy configurator and installer
255 stars 133 forks source link

Server certificate verify failed: signer not found #42

Open crxssrazr93 opened 1 year ago

crxssrazr93 commented 1 year ago

Connection keeps reconnecting.

2023-07-03 17:21:33 | 614c | SSL read error: The TLS connection was non-properly terminated.; reconnecting.
2023-07-03 17:21:33 | 614c | SSL negotiation with 129.153.152.36
2023-07-03 17:21:33 | 614c | Server certificate verify failed: signer not found
2023-07-03 17:21:34 | 614c | Connected to HTTPS on 129.153.152.36
iw4p commented 1 year ago

Hi, are you using docker? It seems there is a problem with signed certificate. I suggest creating it again and check the container logs.

crxssrazr93 commented 1 year ago

Hi, are you using docker? It seems there is a problem with signed certificate. I suggest creating it again and check the container logs.

Yes, I am using docker.

This is the log output:

ubuntu@instance-20230404-2236:~/OpenConnect-Cisco-AnyConnect-VPN-Server-OneKey-ocserv$ sudo docker logs 2890d98c42fa
net.ipv4.ip_forward = 1
note: vhost:default: setting 'plain' as primary authentication method
note: setting 'file' as supplemental config option
listening (TCP) on 0.0.0.0:9443...
iw4p commented 1 year ago

It can be a misconfigured certificate. Maybe you don't have the certificate in the right location, or the permissions on the certificate is not incorrect. I suggest to git clone this repo, and then try to build image from the local Dockerfile and see anything changes or not. It's a little bit strange for me because Docker creates an isolated space, and it is fine for everyone, and it is not normal that you are not fine with it. Please also try the script (non Docker way).