Closed valosekj closed 1 year ago
I remember having that problem as well, and it was solved by changing the type of keychain entry to be an 'application password':
It is very convenient to rely on Keychain and not have to write poly-vpn password each time you want to connect to the VPN.
Hm, the problem was that I stored my credentials in the iCloud
Keychain. But they have to be stored in the login
Keychain. Now, it is working.
I will clarify the intranet wiki. Thank you!
When connecting from home to VPN using
openconnect
based on the instructions from intranet, I encountered troubles withvpn.sh
script for macOS. Namely, although I addedpoly-vpn
credentials to the Keychain app, thesecurity find-generic-password
command returns the following error:It seems that
security find-generic-password
cannot find my credentials although they are stored in the Keychain app.I solved that by modifying the
vpn.sh
script to read the password from the CLI. (It is actually similar to thevpn.sh
Linux script, but I did not want to have my password hardcoded directly in the script)My MacOS version is 11.7 (20G817) Big Sur. This issue is maybe related to https://github.com/neuropoly/intranet.neuro.polymtl.ca/issues/19