I use the openvpn command line to connect to a certain VPN site, and I get annoyed at having to find the password everytime
So, in the .ovpn file, there is a setting:
So, I create a file (lets call it new-file.txt) in the same folder as the config, and it only contains 2 lines, first line username, second password
Change the auth-user-pass line to be
And now it connects without prompting me for password. Super.
Obviously this is a slight security issue, but this is on a pretty secure VM on a secure machine. So its quite safe. Just think about it if you are implementing the same workaround.