openconnect error

Kernels & Hardware, configuring network, installing services

openconnect error

Postby PsySc0rpi0n » 2020-03-13 22:30


Due to the new coVID-19 pandemic situation, I was sent home and will try to work from home.
To accomplish this I need to perform a connection to a VPN server.
At work, we all use Windows in our lpatops/desktops but I use Linux at home and I'm trying to establish this connection using 'openconnect' instead of this 'Pulse Secure' application we use at work.

When I try to connect to the VPN server URL, I get the following error:

Code: Select all
$ sudo openconnect --proto=nc
[sudo] password for myuser:
Connected to
SSL negotiation with
Connected to HTTPS on
Got HTTP response: HTTP/1.1 302 Found
SSL negotiation with
Connected to HTTPS on
Failed to read from SSL socket: The TLS connection was non-properly terminated.
Error fetching HTTPS response
Failed to obtain WebVPN cookie

Anyone knows how to fix this?
User avatar
Posts: 198
Joined: 2012-10-24 13:54
Location: Portugal

Re: openconnect error

Postby reinob » 2020-03-16 06:24

PsySc0rpi0n wrote:Anyone knows how to fix this?

I'm in a similar situation, with the advantage of having a preconfigured thin-client doing everything.
But I also tested the VPN connection with openconnect (for pulsesecure) and it did work fine.
In my case, the "password" is a code displayed by a hardware token. Do you have something similar?

It can be that if you enter the wrong (= not expected) password, the server terminates the connection abruptly, and that's why you get "The TLS connection was non-properly terminated."

Good luck!
Posts: 790
Joined: 2014-06-30 11:42

Return to System configuration

Who is online

Users browsing this forum: No registered users and 11 guests