X-Git-Url: https://sipb.mit.edu/gitweb.cgi/wiki.git/blobdiff_plain/9e2706951f03c9e426500cb841422409efce9169..8b2eb57fa462867d8cedee40f25487d53e8ee9e3:/doc/enabling_client_certificate_auth_in_chrome.html diff --git a/doc/enabling_client_certificate_auth_in_chrome.html b/doc/enabling_client_certificate_auth_in_chrome.html index 697348f..c043778 100644 --- a/doc/enabling_client_certificate_auth_in_chrome.html +++ b/doc/enabling_client_certificate_auth_in_chrome.html @@ -1,21 +1,32 @@ -

So, you want to run Chrome (or Chromium), but you're annoyed by the lack of -client certificate authentication on Linux. Turns out, this is relatively easy -to solve, there's just no UI for it as of yet. (As of 11/13/2009.) (Note: I'm doing this running the daily build from the chromium-daily ppa on Launchpad - if you're running Debian or Ubuntu, you can add "deb http://ppa.launchpad.net/chromium-daily/ppa/ubuntu karmic main" to your -/etc/apt/sources.list if you want to run this. It may work on the official -Google build as well, I'm not sure.)

+

I can visit some page in firefox and it just requests a certificate. How do I get that to work on Google Chome?

+

So, you want to run Chrome (or Chromium), but you're annoyed by the lack of client certificate authentication on Linux. +Turns out, this is relatively easy to solve, there's just no GUI for it as of yet. (As of 12/3/2009.) +As far as I know, this only works with the daily build from the chromium-daily ppa on Launchpad. +It might work on the official chrome build, if it works, please tell us. +if you're running Debian or Ubuntu, you can add "deb http://ppa.launchpad.net/chromium-daily/ppa/ubuntu karmic main" to your +/etc/apt/sources.list and then apt-get update +

+

Installing Certificates

+

The simplest thing to do is go to the usual web interface and follow the instructions to install certs normally. +You may also want the CSAIL CA (specifically, the Master CA). +If this works, you should be able to skip to telling chrome touse certtificate by default -

You want to use the instructions at -Google's page on LinuxCertManagement to install the MIT CA. You may also want the CSAIL CA (specifically, the Master CA). If you're +Failing that, the next easiest way to install a client cert in the nss database is simply to install it on Firefox; +At that point, it should be in the list of certificates you get when you run "certutil -d sql:$HOME/.pki/nssdb -L". + +

Otherwise, you want to look at the the instructions at +Google's page on LinuxCertManagement to install the MIT CA. If you're running Debian or Ubuntu, the short version of that LinuxCertManagement page is to install libnss3-tools, then run "certutil -d sql:$HOME/.pki/nssdb -A -t -"C,," -n -i " for both the MIT CA -and (if you want it) the CSAIL CA.

- -

The easiest way to install a client cert in the nss database is simply to -install it on Firefox; at that point, it should be in the list of certificates -you get when you run "certutil -d sql:$HOME/.pki/nssdb -L". If not, go back to -the LinuxCertManagement page and do it manually.

+"C,," -n -i " for both the MIT CA and (if you want it) the CSAIL CA.

+ -

Here's the last key to the puzzle: Chrome on Linux currently lacks a UI for selecting a certificate, so run it with the --auto-ssl-client-auth flag. Enabling this flag configures Chrome to automatically send an certificate to websites without prompting, as Firefox will do under certain configurations. This is considered a privacy issue; see UI notes #3 in the Chromium design document and the linked Mozilla bug. Bug #25241 tracks this issue in Chrome on Linux.

+

Using Certificates

+

Here's the last key to the puzzle: Chrome on Linux currently lacks a UI for selecting a certificate, so run it with the --auto-ssl-client-auth flag.

+To do this by default in Gnome, you want to edit both Preferred Applications and the Main Menu entry +this way links you click on outside of Chrome open this way. (Gnome Do and similar pull their data from Main Menu, among other places.) +Once you've done this, you can check your work with this demo page. If everything is working, it should welcome you by name, and tell you that a certificate for your username is installed.

-

You'll probably want to edit both Preferred Applications and the Main Menu entry (I'm assuming you run Gnome here; if not, there may be other things you want to edit) to reflect this, so links you click on outside of Chrome open this way. (Gnome Do and similar pull their data from Main Menu, among other places.) Once you've done this, you can check your work with this demo page. If everything is working, it should welcome you by name, and tell you that a certificate for your username is installed.

+
Privacy Note
+ Enabling this flag configures Chrome to automatically send an certificate to websites without prompting, as Firefox will do under certain configurations. +This is considered a privacy issue; see UI notes #3 in the Chromium design document and the linked Mozilla bug. Bug #25241 tracks this issue in Chrome on Linux.