Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(114)

Issue 2350483002: Improve error pages on client certificate failures. (Closed)

Created:
4 years, 3 months ago by davidben
Modified:
4 years, 2 months ago
Reviewers:
edwardjung, svaldez, mmenke
CC:
chromium-reviews, cbentzel+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Improve error pages on client certificate failures. This makes the following changes: - Tweak ERR_BAD_SSL_CLIENT_AUTH_CERT's text be suitable for both invalid and missing client certs. net_error_list.h actually already documents it for this case, but the user-visible error does not. - Since TLS lacks a dedicated alert for missing client certificates, servers often send a generic handshake_failure alert. Detect this case and map to ERR_BAD_SSL_CLIENT_AUTH_CERT. - One of the many bad client cert alerts is access_denied. Unfortunately, that was badly named so firewalls sometimes send it, giving users a confusing error page. Detect this case too and map it to ERR_SSL_PROTOCOL_ERROR, the same error we would use for an unexpected alert. Add a bunch of tests for these cases. Screenshot of the new ERR_BAD_SSL_CLIENT_AUTH_CERT: https://drive.google.com/file/d/0Bz14lOW5Hke4ZzRPLXZwUUlzOFk/view?usp=sharing BUG=630883, 646567 Committed: https://crrev.com/fe132d9d1a03966649118030e50715d1a063f73c Cr-Commit-Position: refs/heads/master@{#421265}

Patch Set 1 #

Patch Set 2 #

Total comments: 4

Patch Set 3 : tweak text #

Patch Set 4 : revise per meeting #

Total comments: 2

Patch Set 5 : curly quotes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+405 lines, -61 lines) Patch
M components/error_page_strings.grdp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M net/socket/ssl_client_socket_impl.h View 1 2 3 3 chunks +12 lines, -0 lines 0 comments Download
M net/socket/ssl_client_socket_impl.cc View 1 2 3 7 chunks +38 lines, -4 lines 0 comments Download
M net/socket/ssl_client_socket_unittest.cc View 1 2 3 12 chunks +354 lines, -56 lines 0 comments Download

Messages

Total messages: 35 (22 generated)
davidben
edwardjung: How do you feel about this change UI-wise? Unfortunately, it's hard to be less ...
4 years, 3 months ago (2016-09-16 22:04:36 UTC) #7
davidben
https://codereview.chromium.org/2350483002/diff/20001/components/error_page_strings.grdp File components/error_page_strings.grdp (right): https://codereview.chromium.org/2350483002/diff/20001/components/error_page_strings.grdp#newcode258 components/error_page_strings.grdp:258: <ph name="HOST_NAME">&lt;strong jscontent="hostName"&gt;&lt;/strong&gt;<ex>www.whatever.com</ex></ph> requested a login certificate. It may ...
4 years, 3 months ago (2016-09-16 22:06:14 UTC) #8
svaldez
net/ lgtm https://codereview.chromium.org/2350483002/diff/20001/components/error_page_strings.grdp File components/error_page_strings.grdp (right): https://codereview.chromium.org/2350483002/diff/20001/components/error_page_strings.grdp#newcode258 components/error_page_strings.grdp:258: <ph name="HOST_NAME">&lt;strong jscontent="hostName"&gt;&lt;/strong&gt;<ex>www.whatever.com</ex></ph> requested a login certificate. ...
4 years, 3 months ago (2016-09-19 20:43:15 UTC) #11
davidben
https://codereview.chromium.org/2350483002/diff/20001/components/error_page_strings.grdp File components/error_page_strings.grdp (right): https://codereview.chromium.org/2350483002/diff/20001/components/error_page_strings.grdp#newcode258 components/error_page_strings.grdp:258: <ph name="HOST_NAME">&lt;strong jscontent="hostName"&gt;&lt;/strong&gt;<ex>www.whatever.com</ex></ph> requested a login certificate. It may ...
4 years, 3 months ago (2016-09-19 21:28:07 UTC) #13
edwardjung
Apologies for the slow response David, just waiting on a response from rachelis. The wording ...
4 years, 3 months ago (2016-09-20 09:19:31 UTC) #17
davidben
On 2016/09/20 09:19:31, edwardjung wrote: > Apologies for the slow response David, just waiting on ...
4 years, 3 months ago (2016-09-20 14:25:47 UTC) #18
davidben
edwardjung: Updated the CL per our discussion.
4 years, 2 months ago (2016-09-26 20:59:36 UTC) #22
edwardjung
LGTM, with one typographical nit. https://codereview.chromium.org/2350483002/diff/60001/components/error_page_strings.grdp File components/error_page_strings.grdp (right): https://codereview.chromium.org/2350483002/diff/60001/components/error_page_strings.grdp#newcode258 components/error_page_strings.grdp:258: <ph name="HOST_NAME">&lt;strong jscontent="hostName"&gt;&lt;/strong&gt;<ex>www.whatever.com</ex></ph> didn't ...
4 years, 2 months ago (2016-09-27 08:54:51 UTC) #25
davidben
+mmenke for error_page_strings.grdp https://codereview.chromium.org/2350483002/diff/60001/components/error_page_strings.grdp File components/error_page_strings.grdp (right): https://codereview.chromium.org/2350483002/diff/60001/components/error_page_strings.grdp#newcode258 components/error_page_strings.grdp:258: <ph name="HOST_NAME">&lt;strong jscontent="hostName"&gt;&lt;/strong&gt;<ex>www.whatever.com</ex></ph> didn't accept your ...
4 years, 2 months ago (2016-09-27 16:50:51 UTC) #27
mmenke
LGTM, deferring to Edward.
4 years, 2 months ago (2016-09-27 16:52:12 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2350483002/80001
4 years, 2 months ago (2016-09-27 16:54:04 UTC) #31
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 2 months ago (2016-09-27 18:07:45 UTC) #33
commit-bot: I haz the power
4 years, 2 months ago (2016-09-27 18:09:49 UTC) #35
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/fe132d9d1a03966649118030e50715d1a063f73c
Cr-Commit-Position: refs/heads/master@{#421265}

Powered by Google App Engine
This is Rietveld 408576698