Do more on the web, with a fast and secure browser!

Download Opera browser with:

  • built-in ad blocker
  • battery saver
  • free VPN
Download Opera

Auto select client certificate on certain domains (AutoSelectCertificateForUrls on Chrome)?

  • Hi,
    For accessing certain domains, I have to use a client certificate to authenticate myself. Whenever I visit these domains, I am forced to choose the certificate manually before being allowed to continue. This is the sort of popup I get (clipped not to show personal info): 0_1517238310991_Screen Shot 2018-01-29 at 15.04.42.png

    On Chrome, you can set a default called 'AutoSelectCertificateForUrls' to automatically select the certificate for specific domains (see https://www.chromium.org/administrators/policy-list-3#AutoSelectCertificateForUrls). Is there a similar option in Opera?

    I have tried the following command (MacOS), but no success (tho the same command works fine for Chrome, using com.google.Chrome):

    • defaults write com.operasoftware.Opera.plist AutoSelectCertificateForUrls -array-add -string '{"pattern":"https://<domain>","filter":{"ISSUER":{"CN":"EXAMPLE_CN"}}}'

    Any help would be greatly appreciated!
    Thanks

  • could any of you provide input into this? Is this simply not possible at the moment?

  • The command:
    defaults write com.operasoftware.Opera AutoSelectCertificateForUrls -array-add -string '{"pattern": "<url_pattern>", "filter":{"ISSUER":{"CN":"EXAMPLE_CN"}}'
    runs OK, and I see the entry in the defaults when I run
    defaults read com.operasoftware.Opera
    ... but the cert doesn't get automatically selected - any ideas to get this to work?

  • I thought this is a chrome feature...
    In Chrome it works fine, in Vivaldi it works fine (writing to domain com.vivaldi.Vivaldi), however for Opera I haven't had luck so far (wrote to com.operasoftware.OperaNext as I'm using the beta, see https://forums.opera.com/topic/11657/how-to-disable-auto-update-in-the-macos-version-for-those-who-need-that/3)
    Really annoying/unusable in corporate environments where client authentication is the default for most internal sites ...

  • Yep, it means I've switched to an alternative browser for cert-authenticated sites. Chrome and Firefox both handle auto-selecting certs (in FF it's just a switch in the settings).

    If anyone figures out how to get this working for Opera, please do share!