Skip to content

Instantly share code, notes, and snippets.

@njh
Created December 22, 2015 11:06
Show Gist options
  • Select an option

  • Save njh/1d6f2c6acdf39fb3c1b0 to your computer and use it in GitHub Desktop.

Select an option

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

njh commented Dec 22, 2015

Copy link
Copy Markdown
Author

For Debian/Chromium place this file under:

/etc/chromium/policies/managed

@markgitset

Copy link
Copy Markdown

Thank you!

@sthurstonjc

sthurstonjc commented Apr 1, 2020

Copy link
Copy Markdown

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

@enrialonso

Copy link
Copy Markdown

thx for this very usefull!

@juan2three

Copy link
Copy Markdown

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

@BanHammerYKT

Copy link
Copy Markdown

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

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

@igorovisk

igorovisk commented May 10, 2024

Copy link
Copy Markdown

Can i choose which URL I want each certificate?

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

@keith-ratcliffe

Copy link
Copy Markdown

Perfect, thanks

@ram-wesco

ram-wesco commented Jul 18, 2025

Copy link
Copy Markdown

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