will be implemented later. Until then, users need to use another browser or a special program for certificate enrollment. For example, Windows users can use Internet Explorer to enroll for a certificate, and this certificate will be available to Chromium automatically because Chromium uses the Windows system certificate store.
is the primary bug report tracking the work on SSL client authentication. Issue 16830
tracks the backend of the Linux implementation, issue 25241
tracks the UI of the Linux implementation, and issue 16831
tracks the Mac implementation.
covers certificate enrollment. We decided to implement the HTML <keygen> tag
first because WebKit already supports it. Initially we will only implement what's specified in draft HTML 5
We will use the system certificate store. On the Mac, this is the Keychain. On Linux, this is the shared NSS databases in the ~/.pki/nssdb directory, following the proposal of the NSS team
- We need a dialog to tell the user that the server is requesting a client certificate, and to let the user select a certificate if he has multiple certificates that meet the server's criteria. I suggest we use the Windows built-in certificate selection dialog.
- IE pops up a certificate selection dialog even when the user has no personal certificates. This dialog with no certificates is confusing. We should avoid that.
- Firefox has an option that allows the browser to send a suitable certificate to a server automatically. This feature is now considered a privacy issue (see Mozilla bug 295922). I suggest that we not implement this option. To improve usability, I suggest that we remember temporarily the certificate chosen by the user so that the user doesn't need to select a certificate again when he goes back to the same server for the rest of the browsing session. However, when the browser restarts, the user will need to select a certificate again.
- On the first visit to a server that requests a client certificate, the user must be notified and approve the sending of a client certificate.
- The browser should verify the server's certificate before sending the client certificate to the server. Due to a limitation of the Windows SSL library (the Schannel), this is impossible, and we will need to go out of our way to work around the limitation. See issue 13934. Details: the Schannel doesn't give us the server's certificate until the handshake is complete. By that time, we will have sent the client certificate to the server. To work around this limitation, we will need to either parse the server's SSL packets ourselves so we can get the server's certificate sooner, or we will need to perform two handshakes -- the first handshake is for getting the server's certificate only, and we send the client certificate in the second handshake.
New unit tests for SSL client authentication should cover the following variables.
- Initial handshake vs. renegotiation: SSL client authentication may be performed in either the initial handshake or a renegotiation.
- Acceptable certificate authorities: empty (which means any CA is acceptable), one CA, and multiple CAs.
- Requested certificate types (optional): we support rsa_sign only. Discover how Chrome reacts if other certificate types are requested.
- Acceptable client certificates: none, one, and multiple.
- Expired client certificates: should not be used for SSL client authentication (a design decision of Chrome).
- SSL session resumption: client certificate should not be requested again because it is part of the session state.
- SSL client authentication certificate cache:
- The client certificate selected by the client certificate selection callback should be added to the cache.
- The cache should short-circuit the client certificate selection callback if the same server requests a client certificate again during the same browsing session.
- Bad client certificate should be removed from the cache.
- No private key for the chosen client certificate.
- User denied permission to use private key (Windows only). Not sure if this can be tested without user intervention.
- Wrong password for private key (Linux/NSS only, not implemented yet).