Then, after editing, make the configuration shared and connect it so that it will be secured. Tip: To edit the configuration file, the configuration must first be disconnected and made private. (You can choose any name for the "abc" part, but to ensure that the file is not visible to other users, it must have an extension of ".key".) Tunnelblick copies the folder and secures the abc.key file, so you should securely delete the folder so the username/password cannot be accessed by others.
#TUNNELBLICK VPN USERNAME AND PASSWORD INSTALL#
Rename the folder to be XXX.tblk (where XXX is the name you want for the VPN) and then drag/drop it onto the Tunnelblick icon in the menu bar to install it. Put the "abc.key" file and the modified OpenVPN configuration file in a folder along with any other files that are needed for the configuration.
#TUNNELBLICK VPN USERNAME AND PASSWORD PASSWORD#
In that situation OpenVPN obtains the username and password directly from the file, which works even if no user is logged in. Change "auth-user-pass" to "auth-user-pass abc.key", and include a plain-text "abc.key" file which contains the username on the first line and the password on the second line. However, you can change the OpenVPN configuration file so it will work. There's no way to display a dialog, and there is no Keychain available. That doesn't work for "when computer starts" configurations because no user is logged in. Tunnelblick then either asks the user for them using a dialog box, or retrieves them from the currently-logged-in-user's Keychain (if the user had previously asked Tunnelblick to save them in the Keychain). If an OpenVPN configuration requires a username/password, usually it includes "auth-user-pass" without a parameter, which directs OpenVPN to ask Tunnelblick for a username and password. Whenever you quit Tunnelblick (or you log out, which causes Tunnelblick to quit), Tunnelblick will leave "when computer starts" configurations connected, but close all other configurations that are connected. You can also connect the configuration using Tunnelblick without restarting the computer. The next time the computer is started, the configuration will be connected even before anyone logs in.
Tunnelblick may be used to start or stop the OpenVPN server (or client) to edit the configuration file.