Thanks for your detailed suggestion. However, you don't need to do anything 32 times (for your example).
Here's a way to have 32 configurations share credentials without doing anything 32 times:
- Open the "VPN Details" window.
- Select the 32 configurations in the list on the left of the "Configurations" tab, using shift-click and/or command-click. *
- Open the "Advanced" window and go to the "VPN Credentials" tab.
- Type the name of the credentials (for example, "CREDS") in the textbox, and click the "Add Credentials" button.
- Click the drop-down box and select "This configuration uses CREDS credentials".
- Close the "Advanced" and/or "VPN Details" windows if you wish.
- Connect using one of the configurations.
- When asked for the username/password, enter them and check one or both "Save in Keychain" checkboxes.
That's it; you're done. If you try to connect using any of the 32 configurations, they will use the CREDS username/password that you saved in the Keychain.
The "trick" here is to use Tunnelblick's ability to change settings on more than one configuration at a time (for most settings): Tunnelblick will apply settings changes to all configurations that are selected in the list on the left side of the "Configurations" tab of the "VPN Details" window.
I apologize that the ability to change settings for multiple configurations all at once isn't explained well (if at all?) in the documentation; I would welcome a suggestion as to where -- and how -- to explain it. (It isn't specific to named credentials, and I don't want to repeat this in the description of each setting!)
* Select multiple configurations using macOS-standard methods: click one configuration and then shift-click another to select both plus the ones in between and command-click to toggle whether a single configuration is selected or not.)