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

Issue 13866049: Fix client certificate authentication on Mac and Linux introduced in r178732 (Closed)

Created:
7 years, 8 months ago by Ryan Sleevi
Modified:
7 years, 8 months ago
Reviewers:
wtc
CC:
chromium-reviews, cbentzel+watch_chromium.org, sail+watch_chromium.org
Visibility:
Public.

Description

Fix client certificate authentication on Mac and Linux introduced in r178732 When requesting client authentication, the SSL server may send a list of acceptable CAs. When discovering matching client certificates, the Mac and Linux implementations were not fully considering all intermediate certificates when attempting to discover client certificates. For example, if the client certficate chain was CC -> Intermediate -> Root, and the server sent a list of acceptable CAs as Root, then on Mac and Linux, CC would not be considered, whereas on Windows it would. Further, if the server listed Intermediate as an acceptable CA, then it would work on all platforms. BUG=224280, 224897 TEST=See https://docs.google.com/a/chromium.org/document/d/19V5_PBSm7OaFLXzTXdiCdSpt1r1yFYJhuH9X41O2oOs/edit?usp=sharing R=wtc@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=196535

Patch Set 1 #

Total comments: 9

Patch Set 2 : Mac fix & simplify scripts for unit tests #

Patch Set 3 : Update script to distinguish client certs, address review feedback #

Patch Set 4 : Win fix #

Patch Set 5 : Wrong branch #

Patch Set 6 : Rebased #

Patch Set 7 : Refresh key files for certs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+672 lines, -516 lines) Patch
M crypto/mac_security_services_lock.h View 1 chunk +0 lines, -1 line 0 comments Download
M net/cert/x509_certificate.h View 1 chunk +0 lines, -3 lines 0 comments Download
M net/cert/x509_certificate_mac.cc View 1 2 3 4 5 2 chunks +0 lines, -84 lines 0 comments Download
M net/data/ssl/certificates/README View 1 1 chunk +8 lines, -8 lines 0 comments Download
M net/data/ssl/certificates/client_1.key View 1 2 3 4 5 6 1 chunk +25 lines, -25 lines 0 comments Download
M net/data/ssl/certificates/client_1.pem View 1 2 3 4 5 6 1 chunk +59 lines, -53 lines 0 comments Download
A net/data/ssl/certificates/client_1_ca.pem View 1 2 3 4 5 6 1 chunk +71 lines, -0 lines 0 comments Download
D net/data/ssl/certificates/client_1_root.pem View 1 1 chunk +0 lines, -66 lines 0 comments Download
M net/data/ssl/certificates/client_2.key View 1 2 3 4 5 6 1 chunk +25 lines, -25 lines 0 comments Download
M net/data/ssl/certificates/client_2.pem View 1 2 3 4 5 6 1 chunk +59 lines, -53 lines 0 comments Download
A net/data/ssl/certificates/client_2_ca.pem View 1 2 3 4 5 6 1 chunk +71 lines, -0 lines 0 comments Download
D net/data/ssl/certificates/client_2_root.pem View 1 1 chunk +0 lines, -66 lines 0 comments Download
A net/data/ssl/scripts/client-certs.cnf View 1 1 chunk +51 lines, -0 lines 0 comments Download
D net/data/ssl/scripts/client_authentication.cnf View 1 1 chunk +0 lines, -35 lines 0 comments Download
M net/data/ssl/scripts/generate-client-certificates.sh View 1 2 1 chunk +132 lines, -49 lines 0 comments Download
M net/socket/ssl_client_socket_nss.cc View 4 chunks +25 lines, -25 lines 0 comments Download
M net/socket/ssl_client_socket_openssl_unittest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M net/ssl/client_cert_store_impl_mac.cc View 1 2 5 chunks +103 lines, -7 lines 0 comments Download
M net/ssl/client_cert_store_impl_nss.cc View 1 2 4 chunks +35 lines, -6 lines 0 comments Download
M net/ssl/client_cert_store_impl_unittest.cc View 1 1 chunk +6 lines, -8 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
Ryan Sleevi
wtc: Tests incoming, as well as likely compile fixes for OS X (since I coded ...
7 years, 8 months ago (2013-04-16 02:32:49 UTC) #1
wtc
Patch set 1 LGTM. https://codereview.chromium.org/13866049/diff/1/net/socket/ssl_client_socket_nss.cc File net/socket/ssl_client_socket_nss.cc (right): https://codereview.chromium.org/13866049/diff/1/net/socket/ssl_client_socket_nss.cc#newcode1410 net/socket/ssl_client_socket_nss.cc:1410: os_error = SecIdentityCopyPrivateKey(identity, &private_key); Just ...
7 years, 8 months ago (2013-04-16 18:50:32 UTC) #2
Ryan Sleevi
https://codereview.chromium.org/13866049/diff/1/net/socket/ssl_client_socket_nss.cc File net/socket/ssl_client_socket_nss.cc (right): https://codereview.chromium.org/13866049/diff/1/net/socket/ssl_client_socket_nss.cc#newcode1410 net/socket/ssl_client_socket_nss.cc:1410: os_error = SecIdentityCopyPrivateKey(identity, &private_key); On 2013/04/16 18:50:32, wtc wrote: ...
7 years, 8 months ago (2013-04-16 19:00:26 UTC) #3
Ryan Sleevi
Updated comments, also wrote a doc for the manual testing scenarios for this bug. Cleaned ...
7 years, 8 months ago (2013-04-19 23:21:43 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rsleevi@chromium.org/13866049/16001
7 years, 8 months ago (2013-04-19 23:22:03 UTC) #5
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 8 months ago (2013-04-20 00:01:01 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rsleevi@chromium.org/13866049/35001
7 years, 8 months ago (2013-04-20 00:53:39 UTC) #7
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 8 months ago (2013-04-20 01:33:24 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rsleevi@chromium.org/13866049/43002
7 years, 8 months ago (2013-04-20 01:56:12 UTC) #9
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 8 months ago (2013-04-20 02:18:31 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rsleevi@chromium.org/13866049/53001
7 years, 8 months ago (2013-04-22 22:04:01 UTC) #11
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 8 months ago (2013-04-22 22:05:50 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rsleevi@chromium.org/13866049/53001
7 years, 8 months ago (2013-04-22 22:08:38 UTC) #13
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 8 months ago (2013-04-22 23:50:18 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rsleevi@chromium.org/13866049/53001
7 years, 8 months ago (2013-04-22 23:53:15 UTC) #15
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 8 months ago (2013-04-23 00:52:06 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rsleevi@chromium.org/13866049/53001
7 years, 8 months ago (2013-04-25 21:21:45 UTC) #17
commit-bot: I haz the power
7 years, 8 months ago (2013-04-25 23:25:49 UTC) #18
Message was sent while issue was closed.
Change committed as 196535

Powered by Google App Engine
This is Rietveld 408576698