TIP: Quickly find the right profile directory

Got a problem with Viscosity or need help? Ask here!

Ville

Posts: 3
Joined: Mon Jul 10, 2017 4:49 pm

Post by Ville » Wed Jul 12, 2017 2:41 am
Sometimes one wants to replace a cert, or pull some detail from a certificate with OpenSSL. Here's a quick command to find the correct profile directory that contains the certificate (since the profile dirs are named with numbers rather than with more descriptive names):
Code: Select all
cd ~/Library/Application Support/Viscosity/OpenVPN/
find . -type f -name 'config.conf' -exec grep -n 'viscosity name' /dev/null {} +
1 post Page 1 of 1