Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1020)

Issue 1890193003: Make Cast certificate verification enforce constraints specified in the trusted root certificate. (Closed)

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

Description

Make Cast certificate verification enforce constraints specified in the trusted root certificate. * Hardcode the 2 Chromecast root certificates. Previously we included their Subject+SPKI, now it includes the full certificates. * Change the net::TrustStore to take full-blown certificates rather than (subjet, spki) tuples. * During verification all checks are done on the root certificate except for signature and issuer check. Committed: https://crrev.com/55f0260050a83ff2ed9b3169bce8812a19d07b1e Cr-Commit-Position: refs/heads/master@{#388905}

Patch Set 1 #

Patch Set 2 : fix #

Total comments: 8

Patch Set 3 : add moar tests #

Patch Set 4 : moar #

Patch Set 5 : add out of line ctors #

Patch Set 6 : fix issue with copying TrustAnchor #

Patch Set 7 : update comments #

Patch Set 8 : wrap line #

Patch Set 9 : rebase #

Patch Set 10 : list datafiles for ios (needed following the rebase) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1581 lines, -235 lines) Patch
M extensions/common/cast/cast_cert_validator.cc View 1 2 3 4 5 4 chunks +28 lines, -117 lines 0 comments Download
A extensions/common/cast/cast_root_ca_cert_der-inc.h View 1 2 3 4 5 6 1 chunk +148 lines, -0 lines 0 comments Download
A extensions/common/cast/eureka_root_ca_der-inc.h View 1 2 3 4 5 6 7 1 chunk +146 lines, -0 lines 0 comments Download
M extensions/extensions.gypi View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M net/cert/internal/parse_certificate.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M net/cert/internal/parse_certificate.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M net/cert/internal/verify_certificate_chain.h View 1 2 3 4 5 6 1 chunk +84 lines, -11 lines 0 comments Download
M net/cert/internal/verify_certificate_chain.cc View 1 2 3 4 5 6 8 chunks +196 lines, -56 lines 0 comments Download
M net/cert/internal/verify_certificate_chain_pkits_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +1 line, -13 lines 0 comments Download
M net/cert/internal/verify_certificate_chain_unittest.cc View 1 2 3 4 5 6 7 8 5 chunks +14 lines, -14 lines 0 comments Download
A net/data/verify_certificate_chain_unittest/expired-root.pem View 1 2 1 chunk +280 lines, -0 lines 0 comments Download
A + net/data/verify_certificate_chain_unittest/generate-expired-root.py View 1 2 2 chunks +6 lines, -6 lines 0 comments Download
A + net/data/verify_certificate_chain_unittest/generate-non-self-signed-root.py View 1 2 3 4 5 2 chunks +9 lines, -8 lines 0 comments Download
A + net/data/verify_certificate_chain_unittest/generate-violates-pathlen-1-root.py View 1 2 1 chunk +7 lines, -10 lines 0 comments Download
A net/data/verify_certificate_chain_unittest/non-self-signed-root.pem View 1 2 3 1 chunk +281 lines, -0 lines 0 comments Download
A net/data/verify_certificate_chain_unittest/violates-pathlen-1-root.pem View 1 2 1 chunk +369 lines, -0 lines 0 comments Download
M net/net.gypi View 1 2 3 4 5 6 7 8 9 3 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (10 generated)
eroman
4 years, 8 months ago (2016-04-15 23:37:34 UTC) #2
eroman
I have some test failures to investigate, as well as adding test cases that exercise ...
4 years, 8 months ago (2016-04-16 00:08:46 UTC) #3
mattm
https://codereview.chromium.org/1890193003/diff/20001/extensions/common/cast/cast_cert_validator.cc File extensions/common/cast/cast_cert_validator.cc (right): https://codereview.chromium.org/1890193003/diff/20001/extensions/common/cast/cast_cert_validator.cc#newcode34 extensions/common/cast/cast_cert_validator.cc:34: // (1) CN=Cast Root CA Add "(kCastRootCaDer)" ? Or ...
4 years, 8 months ago (2016-04-16 02:40:29 UTC) #4
eroman
Thanks Matt! Some initial feedback Note that I need to make some more updates before ...
4 years, 8 months ago (2016-04-18 20:43:03 UTC) #5
eroman
Updated with some new tests. Also changed the behavior so that expiration *is* enforced on ...
4 years, 8 months ago (2016-04-19 01:32:40 UTC) #7
eroman
PTAL, updated TrustAnchor definition to fix test failures.
4 years, 8 months ago (2016-04-19 20:11:18 UTC) #8
mattm
lgtm
4 years, 8 months ago (2016-04-19 22:33:54 UTC) #9
eroman
+sheretov to review the chromecast bits.
4 years, 8 months ago (2016-04-19 22:42:31 UTC) #11
sheretov
lgtm
4 years, 8 months ago (2016-04-21 15:08:56 UTC) #12
eroman
+asargent for //extensions approval (not adding new capabilities, just addressing some implementation TODOs).
4 years, 8 months ago (2016-04-21 16:36:51 UTC) #14
asargent_no_longer_on_chrome
lgtm
4 years, 8 months ago (2016-04-21 18:05:37 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1890193003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1890193003/140001
4 years, 8 months ago (2016-04-21 18:06:32 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_gn on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_gn/builds/22976)
4 years, 8 months ago (2016-04-21 19:20:44 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1890193003/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1890193003/180001
4 years, 8 months ago (2016-04-21 20:10:47 UTC) #22
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 8 months ago (2016-04-21 21:24:42 UTC) #24
commit-bot: I haz the power
4 years, 8 months ago (2016-04-22 19:39:46 UTC) #26
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/55f0260050a83ff2ed9b3169bce8812a19d07b1e
Cr-Commit-Position: refs/heads/master@{#388905}

Powered by Google App Engine
This is Rietveld 408576698