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 {} +