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

Issue 2185403003: Return the certificate chain in ClientCertStoreNSS. (Closed)

Created:
4 years, 4 months ago by davidben
Modified:
4 years, 4 months ago
Reviewers:
Ryan Sleevi
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Return the certificate chain in ClientCertStoreNSS. NSS used to build a chain internally in the SSL stack which got lost when switching to BoringSSL. Align with other platforms by building the chain externally in ClientCertStoreNSS. Although this is inherently somewhat flaky, some servers do not have intermediates configured locally and expect the client to supply them. This modifies (really completely rewrites) our bundled NSS_CmpCertChainWCANames to return the chain it found. That is returned out of ClientCertStoreNSS. Note that this is not completely the same as the old behavior. Rather than building as much of a path as we can manage from the leaf, we will stop at the issuer list supplied by the server. It is assumed that the server accepts the issuers it claims to accept. We also only do name-based matching (which we were doing anyway) to avoid adding a more expensive global operation in the candidate matching path. In doing so, this syncs NSS with other platforms in removing the ancient workaround for Netscape Enterprise Server 2.0, released in 1996. Tested with unit tests and also manually against a custom Go server. BUG=548631 Committed: https://crrev.com/8d569f5901989954c0b39a83f16ebd36375e98b8 Cr-Commit-Position: refs/heads/master@{#408647}

Patch Set 1 #

Patch Set 2 : Return the certificate chain in ClientCertStoreNSS. #

Patch Set 3 : add missing file #

Total comments: 4

Patch Set 4 : rsleevi comments #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+206 lines, -127 lines) Patch
M net/BUILD.gn View 1 chunk +4 lines, -4 lines 0 comments Download
M net/net_common.gypi View 1 chunk +2 lines, -4 lines 0 comments Download
M net/ssl/client_cert_store_nss.cc View 1 2 3 4 chunks +17 lines, -24 lines 0 comments Download
M net/ssl/client_cert_store_nss_unittest.cc View 2 chunks +76 lines, -0 lines 0 comments Download
M net/ssl/client_cert_store_unittest-inl.h View 1 chunk +12 lines, -5 lines 0 comments Download
M net/third_party/nss/README.chromium View 1 chunk +6 lines, -1 line 0 comments Download
A net/third_party/nss/ssl/cmpcert.h View 1 2 3 1 chunk +30 lines, -0 lines 0 comments Download
D net/third_party/nss/ssl/cmpcert.c View 1 chunk +0 lines, -89 lines 0 comments Download
A net/third_party/nss/ssl/cmpcert.cc View 1 2 3 1 chunk +59 lines, -0 lines 1 comment Download

Dependent Patchsets:

Messages

Total messages: 27 (20 generated)
davidben
I got tired of all the people complaining about intermediates. Here's a new version that ...
4 years, 4 months ago (2016-07-28 21:31:54 UTC) #6
Ryan Sleevi
LGTM % one set of nits that I'm sure will drive you batty https://codereview.chromium.org/2185403003/diff/40001/net/ssl/client_cert_store_nss.cc File ...
4 years, 4 months ago (2016-07-29 00:37:45 UTC) #13
davidben
https://codereview.chromium.org/2185403003/diff/40001/net/ssl/client_cert_store_nss.cc File net/ssl/client_cert_store_nss.cc (right): https://codereview.chromium.org/2185403003/diff/40001/net/ssl/client_cert_store_nss.cc#newcode105 net/ssl/client_cert_store_nss.cc:105: } On 2016/07/29 00:37:44, Ryan Sleevi (slow) wrote: > ...
4 years, 4 months ago (2016-07-29 15:14:11 UTC) #16
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/2185403003/60001
4 years, 4 months ago (2016-07-29 15:19:07 UTC) #22
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 4 months ago (2016-07-29 16:03:37 UTC) #24
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/8d569f5901989954c0b39a83f16ebd36375e98b8 Cr-Commit-Position: refs/heads/master@{#408647}
4 years, 4 months ago (2016-07-29 16:06:49 UTC) #26
davidben
4 years, 4 months ago (2016-07-29 16:38:45 UTC) #27
Message was sent while issue was closed.
https://codereview.chromium.org/2185403003/diff/60001/net/third_party/nss/ssl...
File net/third_party/nss/ssl/cmpcert.cc (right):

https://codereview.chromium.org/2185403003/diff/60001/net/third_party/nss/ssl...
net/third_party/nss/ssl/cmpcert.cc:13: #include "base/logging.h"
Oops. Left this in here while debugging. I'll upload a quick follow-up to remove
it.

Powered by Google App Engine
This is Rietveld 408576698