Folder of configs + username/password
Posted: Tue Jun 19, 2018 6:21 pm
1) I have a folder of ovpn configs I want to import them en masse into Viscosity. I know I can do this using the Viscosity UI. Is there a way to do this via the commandline?
From this response (posting.php?mode=quote&f=9&p=7519) it seems I can import a single config file, but I couldn't get it to work for a folder. (Separately, importing a single config via the commandline shows an annoying popup, so running the commandline in batch isn't straightforward.)
2) When importing a folder of connections, is it possible to import them directly into a folder in the Viscosity UI? It seems one has to import configs from a folder, then select + drag/drop them into a Viscosity UI folder.
3) Is there a way to specify username/password when importing a folder of configs?
4) The response linked above also says "Viscosity will also try and import an auth up file into it's credential storage if one is present when importing the connection".
a) I assume this applies to importing 1 single config; is there a version for folder-of-configs-import?
b) Related, just how is the up file to be specified? The openvpn client commandline would be "openvpn.exe --config [path-to-config] --auth-user-pass [path-to-up-file]". This seems not to work with Viscosity.exe
c) I tried editing the ovpn file to replace "auth-user-pass" with "auth-user-pass up.txt", also ".\up.txt", "./up.txt", "C:\...\up.txt" -- they all just caused a connection error (openvpn.exe complained re incorrect format). It would be great if I could get this to work, as I could edit ovpn files in a script
d) I tried adding "auth-user-pass up.txt" to a specific connection as here (http://sparklabs.com/support/kb/article ... -user-pass); that required I "allow unsafe commands" ... and still failed to connect. This method of specifying user-pass is moot in my case anyway, since I'm looking to avoid futzing with each connection once imported.
My ongoing approach has been: create folder in Viscosity UI + set to share creds; import configs from folder; drag-drop imported configs into folder; manually connect using one of the configs, the thought being that other connections will share it. This is still all too manual. Pls could you suggest something better?
From this response (posting.php?mode=quote&f=9&p=7519) it seems I can import a single config file, but I couldn't get it to work for a folder. (Separately, importing a single config via the commandline shows an annoying popup, so running the commandline in batch isn't straightforward.)
2) When importing a folder of connections, is it possible to import them directly into a folder in the Viscosity UI? It seems one has to import configs from a folder, then select + drag/drop them into a Viscosity UI folder.
3) Is there a way to specify username/password when importing a folder of configs?
4) The response linked above also says "Viscosity will also try and import an auth up file into it's credential storage if one is present when importing the connection".
a) I assume this applies to importing 1 single config; is there a version for folder-of-configs-import?
b) Related, just how is the up file to be specified? The openvpn client commandline would be "openvpn.exe --config [path-to-config] --auth-user-pass [path-to-up-file]". This seems not to work with Viscosity.exe
c) I tried editing the ovpn file to replace "auth-user-pass" with "auth-user-pass up.txt", also ".\up.txt", "./up.txt", "C:\...\up.txt" -- they all just caused a connection error (openvpn.exe complained re incorrect format). It would be great if I could get this to work, as I could edit ovpn files in a script
d) I tried adding "auth-user-pass up.txt" to a specific connection as here (http://sparklabs.com/support/kb/article ... -user-pass); that required I "allow unsafe commands" ... and still failed to connect. This method of specifying user-pass is moot in my case anyway, since I'm looking to avoid futzing with each connection once imported.
My ongoing approach has been: create folder in Viscosity UI + set to share creds; import configs from folder; drag-drop imported configs into folder; manually connect using one of the configs, the thought being that other connections will share it. This is still all too manual. Pls could you suggest something better?