Auto select appropriate certificate for authentication

I was able to get it to work for all Chromium-based browsers on macOS by running these shell commands:

for i in com.google.Chrome com.brave.Browser company.thebrowser.Browser; do
    if [[ -e ~/Library/Preferences/"$i.plist" ]]; then
        defaults write "$i" AutoSelectCertificateForUrls -array
        defaults write "$i" AutoSelectCertificateForUrls -array-add -string '{"pattern":"*","filter":{}}'
    fi
done
killall cfprefsd

I’m sure you can do something similar for other OS’s. Just do a web search for Chrome.

1 Like