Open ludberg opened 11 months ago
I can point my browser to https://sslvpn.domain.se and login, so the url is correct.
A little more info
` [2023-11-24 11:17:49,084] [DEBUG] [fortigate_vpn_login:config.py:51: init()] Initializing configuration (config) [2023-11-24 11:17:49,084] [DEBUG] [fortigate_vpn_login:config.py:55: init()] Setting configuration defaults: [2023-11-24 11:17:49,084] [DEBUG] [fortigate_vpn_login:config.py:56: init()] {'debug_mode': 'False', 'quiet_mode': 'True', 'config_filename': PosixPath('/home/me/.config/fortigate_vpn_login/config.ini'), 'openconnect_pid_filename': '/var/run/openconnect.pid', 'forti_url': ''} [2023-11-24 11:17:49,084] [DEBUG] [fortigate_vpn_login:config.py:129: load()] Loading configuration file /home/me/.config/fortigate_vpn_login/config.ini [2023-11-24 11:17:49,084] [DEBUG] [fortigate_vpn_login:utils.py:79: find_openconnect()] Found openconnect path: /usr/sbin/openconnect [2023-11-24 11:17:49,089] [DEBUG] [fortigate_vpn_login:utils.py:134: check_openconnect_version()] Checking openconnect version: OpenConnect version v8.20-1 Using GnuTLS 3.7.3. Features present: TPMv2, PKCS#11, RSA software token, HOTP software token, TOTP software token, Yubikey OATH, System keys, DTLS, ESP Supported protocols: anyconnect (default), nc, gp, pulse, f5, fortinet, array Default vpnc-script (override with --script): /usr/share/vpnc-scripts/vpnc-script
[2023-11-24 11:17:49,089] [DEBUG] [fortigate_vpn_login:utils.py:148: check_openconnect_version()] Openconnect supported protocols: ['anyconnect', 'nc', 'gp', 'pulse', 'f5', 'fortinet', 'array'] [2023-11-24 11:17:49,089] [DEBUG] [fortigate_vpn_login:fortigate.py:39: connect_saml()] Requesting: https://sslvpn.domain.se/remote/saml/start?redirect=1 [2023-11-24 11:17:49,090] [DEBUG] [urllib3.connectionpool:connectionpool.py:1052: _new_conn()] Starting new HTTPS connection (1): sslvpn.domain.se:443 ERROR: Connection error while requesting server https://sslvpn.domain.se. [2023-11-24 11:17:49,243] [DEBUG] [fortigate_vpn_login:fortigate.py:50: connect_saml()] HTTPSConnectionPool(host='sslvpn.domain.se', port=443): Max retries exceeded with url: /remote/saml/start?redirect=1 (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1007)'))) `
Hi,
I can't get this to work and get pass the error "Error while requesting server".
What I've done
1: git clone https://github.com/eitchugo/fortigate-vpn-login 2: cd fortigate-vpn-login 3: make install (got some warnings regarding not being in PATH 4: /user/me/.local/bin/fortigate-vpn-login -s https://sslvpn.domain.se
What am I missing?