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

Issue 9271060: Check cert->isRoot to skip extraneous root certificates in certificate (Closed)

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

Description

Check cert->isRoot to skip extraneous root certificates in certificate chains. NSS bug 721288 causes CERT_PKIXVerifyCert to continue extending the certificate chain after it has reached a root certificate. Detect that bug and ignore such extraneous root certificates in certificate chains when checking for weak signature algorithms. R=rsleevi@chromium.org BUG=108514 TEST=a new unit test (to be added) that uses the certificate chain sent by https://images.etrade.wallst.com/ during SSL handshake. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=119595

Patch Set 1 #

Total comments: 3

Patch Set 2 : Implement rsleevi's suggestion #

Total comments: 2

Patch Set 3 : Improve comments and add a unit test #

Total comments: 4

Patch Set 4 : Improve comments and add TODO for generating test certs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+334 lines, -0 lines) Patch
M net/base/x509_certificate_nss.cc View 1 2 3 1 chunk +24 lines, -0 lines 0 comments Download
M net/base/x509_certificate_unittest.cc View 1 2 3 1 chunk +37 lines, -0 lines 0 comments Download
M net/data/ssl/certificates/README View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
A net/data/ssl/certificates/globalsign_orgv1_ca.pem View 1 2 1 chunk +97 lines, -0 lines 0 comments Download
A net/data/ssl/certificates/globalsign_root_ca_md5.pem View 1 2 1 chunk +78 lines, -0 lines 0 comments Download
A net/data/ssl/certificates/images_etrade_wallst_com.pem View 1 2 1 chunk +94 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
wtc
I will add the unit test tomorrow. In the interest of time, I'd like you ...
8 years, 11 months ago (2012-01-26 03:10:22 UTC) #1
Ryan Sleevi
https://chromiumcodereview.appspot.com/9271060/diff/1/net/base/x509_certificate_nss.cc File net/base/x509_certificate_nss.cc (right): https://chromiumcodereview.appspot.com/9271060/diff/1/net/base/x509_certificate_nss.cc#newcode202 net/base/x509_certificate_nss.cc:202: if (node->cert->isRoot && root_cert && On 2012/01/26 03:10:23, wtc ...
8 years, 11 months ago (2012-01-26 04:36:27 UTC) #2
wtc
rsleevi: thanks for your comments. Patch Set 2 implements your suggestion. I am relying on ...
8 years, 11 months ago (2012-01-27 02:54:04 UTC) #3
Ryan Sleevi
Functionally LGTM, two comment nits below. http://codereview.chromium.org/9271060/diff/7001/net/base/x509_certificate_nss.cc File net/base/x509_certificate_nss.cc (right): http://codereview.chromium.org/9271060/diff/7001/net/base/x509_certificate_nss.cc#newcode199 net/base/x509_certificate_nss.cc:199: if (node->cert->isRoot) { ...
8 years, 11 months ago (2012-01-27 02:59:21 UTC) #4
wtc
sleevi: Thank you for your comments. Please review Patch Set 3. I added the comments ...
8 years, 11 months ago (2012-01-27 21:09:08 UTC) #5
Ryan Sleevi
Great. Like we discussed, I think this is fine/correct - tests look good, so I ...
8 years, 11 months ago (2012-01-27 21:45:37 UTC) #6
wtc
rsleevi: Patch Set 4 addressed your review comments. I also verified the new unit test ...
8 years, 11 months ago (2012-01-27 22:58:13 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wtc@chromium.org/9271060/13001
8 years, 11 months ago (2012-01-28 00:55:15 UTC) #8
commit-bot: I haz the power
Try job failure for 9271060-13001 (retry) on linux_rel for step "compile" (clobber build). It's a ...
8 years, 11 months ago (2012-01-28 01:26:05 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wtc@chromium.org/9271060/13001
8 years, 11 months ago (2012-01-28 02:10:25 UTC) #10
commit-bot: I haz the power
8 years, 11 months ago (2012-01-28 08:42:21 UTC) #11
Change committed as 119595

Powered by Google App Engine
This is Rietveld 408576698