2

I have a work environment where I am allowed to use my workstation as I want, but I don't have any support for Linux. If anything doesn't work or is broken I have to fix it myself.

On Windows we use Cisco AnyConnect as a VPN with certificates so we can work from home. Is there a way to copy that certificate on Linux and use it with OpenConnect?

1

OpenConnect supports certificate based authentication. These are probably the options you're looking for:

-c,--certificate=CERT

  Use SSL client certificate CERT which may be either a file name or, 
  if OpenConnect has been built with an appropriate version of GnuTLS, a PKCS#11 URL.

-k,--sslkey=KEY

  Use SSL private key KEY which may be either a file name or, if OpenConnect has been built with an appropriate version of GnuTLS, a PKCS#11 URL.

For more details, you can refer to the official manual:

http://www.infradead.org/openconnect/manual.html

1
  • 1
    The OpenConnect GUI already helped me with this issue. My main problem is extracting a certificate and key format that the OpenConnect accepts. – Catalin Vasile Dec 18 '17 at 14:44
0

openconnect --certificate=certificate.p12 servername

on CentOS 7 helped to connect using the VPN Certificate

1
  • Can you elaborate on this a little more? – Toto Jun 3 '18 at 8:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.