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

Issue 724543002: Reject certificates that are valid for too long. (Closed)

Created:
6 years, 1 month ago by palmer
Modified:
5 years, 10 months ago
Reviewers:
egm, felt, Ryan Sleevi
CC:
chromium-reviews, darin-cc_chromium.org, cbentzel+watch_chromium.org, jam, mmenke
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reject certificates that are valid for too long. This is in conformance with the CA/Browser Forum Baseline Requirements for certificate issuance. This CL is adapted from a diff provided by sigbjorn@opera.com. Thanks! BUG=119211 TBR=phajdan.jr@chromium.org Committed: https://crrev.com/4867d6cc021aca57e5a327b7ca8ed365485c0caa Cr-Commit-Position: refs/heads/master@{#313603}

Patch Set 1 #

Patch Set 2 : Add the PEM files for testing. #

Patch Set 3 : More tests, check each branch, fix the static const Times (they were wrong!). #

Patch Set 4 : Oops, forgot to remove 2 DVLOGs. #

Total comments: 16

Patch Set 5 : More tests; make sure end dates are accurate in test certs #

Patch Set 6 : Data-driven test; fix the test certs. #

Total comments: 12

Patch Set 7 : Fix nits. #

Total comments: 1

Patch Set 8 : An irrepressibly felicitous string. #

Total comments: 2

Patch Set 9 : Whitespace nit(s). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1532 lines, -278 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/ssl/ssl_error_info.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ssl/ssl_error_info.cc View 4 chunks +33 lines, -21 lines 0 comments Download
M content/browser/ssl/ssl_policy.cc View 1 chunk +1 line, -0 lines 0 comments Download
M net/base/net_error_list.h View 1 2 3 4 5 6 1 chunk +4 lines, -1 line 0 comments Download
M net/cert/cert_status_flags.cc View 2 chunks +4 lines, -0 lines 0 comments Download
M net/cert/cert_status_flags_list.h View 1 chunk +1 line, -0 lines 0 comments Download
M net/cert/cert_verify_proc.h View 2 chunks +13 lines, -0 lines 0 comments Download
M net/cert/cert_verify_proc.cc View 1 2 3 4 5 4 chunks +56 lines, -1 line 0 comments Download
M net/cert/cert_verify_proc_unittest.cc View 1 2 3 4 5 6 7 chunks +49 lines, -30 lines 0 comments Download
A net/data/ssl/certificates/10_year_validity.pem View 1 2 3 4 5 1 chunk +82 lines, -0 lines 0 comments Download
A net/data/ssl/certificates/11_year_validity.pem View 1 2 3 4 1 chunk +82 lines, -0 lines 0 comments Download
A net/data/ssl/certificates/39_months_after_2015_04.pem View 1 2 3 4 1 chunk +82 lines, -0 lines 0 comments Download
A net/data/ssl/certificates/40_months_after_2015_04.pem View 1 2 3 4 1 chunk +82 lines, -0 lines 0 comments Download
A net/data/ssl/certificates/60_months_after_2012_07.pem View 1 2 3 4 5 1 chunk +82 lines, -0 lines 0 comments Download
A net/data/ssl/certificates/61_months_after_2012_07.pem View 1 2 3 4 1 chunk +82 lines, -0 lines 0 comments Download
M net/data/ssl/certificates/README View 1 2 3 4 5 6 7 8 4 chunks +22 lines, -4 lines 0 comments Download
A net/data/ssl/certificates/pre_br_validity_bad_121.pem View 1 2 1 chunk +82 lines, -0 lines 0 comments Download
A net/data/ssl/certificates/pre_br_validity_bad_2020.pem View 1 2 1 chunk +82 lines, -0 lines 0 comments Download
A net/data/ssl/certificates/pre_br_validity_ok.pem View 1 2 1 chunk +82 lines, -0 lines 0 comments Download
A net/data/ssl/certificates/reject_intranet_hosts.pem View 1 1 chunk +69 lines, -0 lines 0 comments Download
D net/data/ssl/certificates/satveda.pem View 1 chunk +0 lines, -207 lines 0 comments Download
A net/data/ssl/certificates/start_after_expiry.pem View 1 2 1 chunk +82 lines, -0 lines 0 comments Download
A net/data/ssl/certificates/twitter-chain.pem View 1 1 chunk +302 lines, -0 lines 0 comments Download
M net/data/ssl/scripts/generate-test-certs.sh View 1 2 3 4 5 6 1 chunk +134 lines, -1 line 0 comments Download
M net/test/test_certificate_data.h View 1 2 3 4 5 6 1 chunk +17 lines, -13 lines 0 comments Download

Messages

Total messages: 34 (6 generated)
palmer
So, we need more tests. What would you like to see, rsleevi?
6 years, 1 month ago (2014-11-13 00:22:07 UTC) #2
Ryan Sleevi
On 2014/11/13 00:22:07, Chromium Palmer wrote: > So, we need more tests. What would you ...
6 years, 1 month ago (2014-11-13 02:29:05 UTC) #3
palmer
> First, have you fixed the dates? It's not clear. Yes; bask in the glorious ...
6 years, 1 month ago (2014-11-15 01:36:30 UTC) #4
Ryan Sleevi
On 2014/11/15 01:36:30, Chromium Palmer wrote: > > First, have you fixed the dates? It's ...
6 years, 1 month ago (2014-11-22 01:01:19 UTC) #5
palmer
Yep, got side-tracked. Working on it today.
6 years ago (2014-11-24 19:15:14 UTC) #6
palmer
OK, take a look.
6 years ago (2014-11-25 01:48:47 UTC) #7
palmer
Confirmed that all the URLs mentioned in https://code.google.com/p/chromium/issues/detail?id=431573 work with this patch, too.
6 years ago (2014-11-25 20:57:35 UTC) #8
Ryan Sleevi
needs moar tests :) https://codereview.chromium.org/724543002/diff/60001/net/cert/cert_verify_proc.cc File net/cert/cert_verify_proc.cc (right): https://codereview.chromium.org/724543002/diff/60001/net/cert/cert_verify_proc.cc#newcode642 net/cert/cert_verify_proc.cc:642: } no braces for one-liners ...
6 years ago (2014-11-26 12:25:36 UTC) #9
palmer
New patchset coming... https://codereview.chromium.org/724543002/diff/60001/net/cert/cert_verify_proc.cc File net/cert/cert_verify_proc.cc (right): https://codereview.chromium.org/724543002/diff/60001/net/cert/cert_verify_proc.cc#newcode642 net/cert/cert_verify_proc.cc:642: } On 2014/11/26 12:25:36, Ryan Sleevi ...
6 years ago (2014-12-15 22:55:58 UTC) #10
palmer
Anything else needed here, rsleevi?
5 years, 11 months ago (2015-01-06 22:02:09 UTC) #11
Ryan Sleevi
+felt for strings. Mostly nits. I would love to see the ssl_policy change tested (e.g. ...
5 years, 11 months ago (2015-01-22 02:04:40 UTC) #13
palmer
https://codereview.chromium.org/724543002/diff/100001/net/cert/cert_verify_proc_unittest.cc File net/cert/cert_verify_proc_unittest.cc (right): https://codereview.chromium.org/724543002/diff/100001/net/cert/cert_verify_proc_unittest.cc#newcode620 net/cert/cert_verify_proc_unittest.cc:620: const char* file; On 2015/01/22 02:04:40, Ryan Sleevi wrote: ...
5 years, 11 months ago (2015-01-22 20:05:05 UTC) #14
felt
https://codereview.chromium.org/724543002/diff/100001/chrome/browser/ssl/ssl_error_info.h File chrome/browser/ssl/ssl_error_info.h (right): https://codereview.chromium.org/724543002/diff/100001/chrome/browser/ssl/ssl_error_info.h#newcode36 chrome/browser/ssl/ssl_error_info.h:36: CERT_VALIDITY_TOO_LONG, From the top: "This enum is being histogrammed; ...
5 years, 11 months ago (2015-01-22 20:15:32 UTC) #15
palmer
https://codereview.chromium.org/724543002/diff/100001/chrome/browser/ssl/ssl_error_info.h File chrome/browser/ssl/ssl_error_info.h (right): https://codereview.chromium.org/724543002/diff/100001/chrome/browser/ssl/ssl_error_info.h#newcode36 chrome/browser/ssl/ssl_error_info.h:36: CERT_VALIDITY_TOO_LONG, On 2015/01/22 20:15:32, felt wrote: > From the ...
5 years, 11 months ago (2015-01-22 20:50:39 UTC) #16
egm
https://codereview.chromium.org/724543002/diff/120001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/724543002/diff/120001/chrome/app/generated_resources.grd#newcode2702 chrome/app/generated_resources.grd:2702: + You attempted to reach <ph name="DOMAIN">&lt;strong&gt;$1<ex>paypal.com</ex>&lt;/strong&gt;</ph>, but the ...
5 years, 11 months ago (2015-01-22 21:06:15 UTC) #18
palmer
> https://codereview.chromium.org/724543002/diff/120001/chrome/app/generated_resources.grd#newcode2702 > chrome/app/generated_resources.grd:2702: + You attempted to reach <ph > name="DOMAIN">&lt;strong&gt;$1<ex>paypal.com</ex>&lt;/strong&gt;</ph>, but the > ...
5 years, 11 months ago (2015-01-22 21:15:23 UTC) #19
egm
On 2015/01/22 21:15:23, palmer (OOO until 30-03-2015) wrote: > > > https://codereview.chromium.org/724543002/diff/120001/chrome/app/generated_resources.grd#newcode2702 > > chrome/app/generated_resources.grd:2702: ...
5 years, 11 months ago (2015-01-22 22:52:53 UTC) #20
palmer
> Ah, ok. Could we still rephrase the string slightly to clarify that "period" is ...
5 years, 11 months ago (2015-01-23 00:58:20 UTC) #21
palmer
I've been driving around the web with this build, including checking the sites that broke ...
5 years, 11 months ago (2015-01-26 20:04:23 UTC) #22
Ryan Sleevi
ACK! Sorry Chris, I thought I'd LGTM'd in my previous review, since all I had ...
5 years, 11 months ago (2015-01-26 20:10:58 UTC) #23
felt
On 2015/01/26 20:10:58, Ryan Sleevi wrote: > ACK! Sorry Chris, I thought I'd LGTM'd in ...
5 years, 11 months ago (2015-01-26 20:19:57 UTC) #24
palmer
https://codereview.chromium.org/724543002/diff/140001/net/data/ssl/certificates/README File net/data/ssl/certificates/README (right): https://codereview.chromium.org/724543002/diff/140001/net/data/ssl/certificates/README#newcode73 net/data/ssl/certificates/README:73: -twitter-chain.pem : A certificate chain for twitter.com which should ...
5 years, 11 months ago (2015-01-26 20:24:07 UTC) #25
egm
On 2015/01/26 20:19:57, felt wrote: > On 2015/01/26 20:10:58, Ryan Sleevi wrote: > > ACK! ...
5 years, 11 months ago (2015-01-26 21:09:27 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/724543002/160001
5 years, 11 months ago (2015-01-26 23:24:14 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/19891) Try jobs failed on following ...
5 years, 11 months ago (2015-01-27 01:35:30 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/724543002/160001
5 years, 10 months ago (2015-01-28 23:03:21 UTC) #32
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years, 10 months ago (2015-01-28 23:05:40 UTC) #33
commit-bot: I haz the power
5 years, 10 months ago (2015-01-28 23:06:51 UTC) #34
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/4867d6cc021aca57e5a327b7ca8ed365485c0caa
Cr-Commit-Position: refs/heads/master@{#313603}

Powered by Google App Engine
This is Rietveld 408576698