Skip to content

Instantly share code, notes, and snippets.

@njh
Created December 22, 2015 11:06
Show Gist options
  • Save njh/1d6f2c6acdf39fb3c1b0 to your computer and use it in GitHub Desktop.
Save njh/1d6f2c6acdf39fb3c1b0 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\":{}}"]
}
@njh
Copy link
Author

njh commented Dec 22, 2015

For Debian/Chromium place this file under:

/etc/chromium/policies/managed

@markgitset
Copy link

Thank you!

@sthurstonjc
Copy link

sthurstonjc commented Apr 1, 2020

I found that this works with Chrome on Ubuntu if placed in:
/etc/opt/chrome/policies/managed

@enrialonso
Copy link

thx for this very usefull!

@juan2three
Copy link

What would be the counterpart for chromium in Ubuntu? I’ve tried using defaults and creating a policy under /managed

@BanHammerYKT
Copy link

Also for Yandex Browser (Arch Linux)
/etc/opt/yandex/browser/policies/managed

Loaded policies may check on page
browser://policy/

@igorovisk
Copy link

igorovisk commented May 10, 2024

Can i choose which URL I want each certificate?

I mean like:
{
"google.com": "certificate1",
"bing.com": "certificate2"
}

@keith-ratcliffe
Copy link

Perfect, thanks

@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

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