]> sipb.mit.edu Git - wiki.git/blob - doc/enabling_client_certificate_auth_in_chrome.html
2e47958ffa5f97138aa6642a2bac0257c8580954
[wiki.git] / doc / enabling_client_certificate_auth_in_chrome.html
1 <p>So, you want to run Chrome (or Chromium), but you're annoyed by the lack of
2 client certificate authentication on Linux.  Turns out, this is relatively easy
3 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
4 /etc/apt/sources.list if you want to run this.  It may work on the official
5 Google build as well, I'm not sure.)</p>
6
7 <p>You want to use the instructions at
8 <a href="http://code.google.com/p/chromium/wiki/LinuxCertManagement">Google's page on LinuxCertManagement</a> to install the <a href="http://ist.mit.edu/services/certificates/mitca">MIT CA</a>.  You may also want the <a href="http://ca.csail.mit.edu/cacert">CSAIL CA</a> (specifically, the Master CA).  If you're
9 running Debian or Ubuntu, the short version of that LinuxCertManagement page is
10 to install libnss3-tools, then run "certutil -d sql:$HOME/.pki/nssdb -A -t
11 "C,," -n <certificate nickname> -i <certificate filename>" for both the MIT CA
12 and (if you want it) the CSAIL CA.</p>
13
14 <p>Recent Linux builds should be able to generate certificates via the usual web interface, however there will be no UI feedback in doing so. Failing that, 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
15 the LinuxCertManagement page and do it manually.</p>
16
17 <p>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 <a href="http://dev.chromium.org/developers/design-documents/ssl-client-authentication">design document</a> and the linked <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=295922">Mozilla bug</a>. Bug <a href="http://code.google.com/p/chromium/issues/detail?id=25241">#25241</a> tracks this issue in Chrome on Linux.</p>
18
19 <p>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 <a href="https://scripts-cert.mit.edu/~geofft/demo/detect.php">this demo page</a>.  If everything is working, it should welcome you by name, and tell you that a certificate for your username is installed.</p>