This directory contains a simple build script and Makefile
to build openconnect
(with keychain support) on macOS.
Tested on macOS 10.15 Catalina.
Install Xcode.
Simply run make
command, then it will download dependencies and build openconnect
.
openconnect
will be installed in usr/sbin/openconnect
.
NOTE The binary and dependencies are not relocatable.
I actually did try that. The issues I'm facing is our Cisco ASAs have self signed certificates which cannot be used for digital signing under modern GnuTLS, which is what installs by default in the latest openconnect build. OpenSSL doesn't care and will connect. For the curious, I got your scripts working in Big Sur. I SHA256 check from configure.sh, and used openSSL 1.0 in the Makefile. Homebrew by default will install openSSL 3.0 which has removed or deprecated functions which openconnect 8.10 imports in various C files, so it will not build with openSSL 3.0. I updated these lines in the Makefile.
.dependencies: homebrew homebrew/bin/brew install autoconf automake libtool pkgconfig rbenv/tap/openssl@1.0 && touch .dependencies