For a Webdrivertest I\'m using Chrome, but there is always a query for one SSL-certificate. With Google Chrome setting its not possible to handle it. So I read that there is a w
Your first option works for me. I've saved the text below as a windows registry file (.reg). After importing it, chrome works as expected.
Notice that you don't need to escape the parenthesis if you are editing the registry directly using regedit.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome\AutoSelectCertificateForUrls]
"1"="{\"pattern\":\"https://example.com\",\"filter\":{\"ISSUER\":{\"CN\":\"IssuerCN\"}}}"
(replace https://example.com and IssuerCN with your values, of course)
For further help, see https://www.chromium.org/administrators/policy-list-3#AutoSelectCertificateForUrls