Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save alanbacelar/a4365324c15e683a02cc6791c285a7ea to your computer and use it in GitHub Desktop.

Select an option

Save alanbacelar/a4365324c15e683a02cc6791c285a7ea to your computer and use it in GitHub Desktop.
Policy file to configure Chrome/Chromium to automatically select a client certificate (useful for Kiosk mode)
{
"AutoSelectCertificateForUrls": ["{\"pattern\":\"*\",\"filter\":{}}"]
}
@ram-wesco
Copy link

ram-wesco commented Jul 18, 2025

Can anyone help here. I tried placing the JSON file in /etc/opt/chrome/policies/managed on my Linux GitHub Actions runner.

But the Chrome policy is not updated. We use Setup Chrome job for our workflow. Where should we place the json file for chrome to detect the policy

Mine is Ubuntu Distro

@dansiqces
Copy link

It worked for me for all sites by adding this to windows register:
{"pattern": "*", "filter": { "ISSUER": { "CN": "your_issuer_cn" }, "SUBJECT": { "CN": "your_subject_cn" } }}

@ram-wesco
Copy link

It works fine on Windows but does not work on Linux with ChromeForTesting builds.
I have already logged a bug on Chromium site.

With Chrome Official build, it works fine on Linux as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment