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

Issue 27832002: Sign self-signed certs with SHA256. (Closed)

Created:
7 years, 2 months ago by bemasc
Modified:
7 years, 1 month ago
CC:
chromium-reviews, nkostylev+watch_chromium.org, amit, stevenjb+watch_chromium.org, dcaiafa+watch_chromium.org, cbentzel+watch_chromium.org, jam, joi+watch-content_chromium.org, darin-cc_chromium.org, wez+watch_chromium.org, sanjeevr, dkrahn+watch_chromium.org, feature-media-reviews_chromium.org, rmsousa+watch_chromium.org, weitaosu+watch_chromium.org, sergeyu+watch_chromium.org, jamiewalch+watch_chromium.org, hclam+watch_chromium.org, oshima+watch_chromium.org, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, alexeypa+watch_chromium.org, davemoore+watch_chromium.org, juberti2, jiayl
Base URL:
https://src.chromium.org/chrome/trunk/src/
Visibility:
Public.

Description

Avoid creating keys and self-signed certs separately. Security best-practices dictate that the same public key should not be signed by multiple hash algorithms. This CL prevents that problem by replacing x509_util::CreateSelfSignedCertificate with CreateKeyAndSelfSignedCertificate. This should allow us to change hash functions in x509_utils without worrying that users may re-sign old keys with the new hash function. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=232292

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Total comments: 19

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 2

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+187 lines, -55 lines) Patch
M chrome/browser/chromeos/attestation/attestation_policy_observer_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/media/webrtc_identity_store.cc View 1 2 3 4 5 6 1 chunk +9 lines, -13 lines 2 comments Download
M net/cert/x509_util.h View 1 2 3 4 5 6 4 chunks +35 lines, -7 lines 0 comments Download
M net/cert/x509_util.cc View 1 2 3 4 5 6 2 chunks +58 lines, -0 lines 0 comments Download
M net/cert/x509_util_nss.cc View 1 2 3 4 5 6 6 chunks +17 lines, -4 lines 0 comments Download
M net/cert/x509_util_nss_unittest.cc View 1 2 3 4 5 6 1 chunk +5 lines, -6 lines 0 comments Download
M net/cert/x509_util_openssl.cc View 1 2 3 4 5 6 7 8 7 chunks +33 lines, -4 lines 0 comments Download
M net/cert/x509_util_openssl_unittest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M net/cert/x509_util_unittest.cc View 1 2 3 4 5 6 2 chunks +17 lines, -12 lines 0 comments Download
M net/ssl/server_bound_cert_service.cc View 1 2 3 4 5 6 1 chunk +7 lines, -9 lines 0 comments Download
M remoting/base/rsa_key_pair.cc View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 3 comments Download

Messages

Total messages: 35 (0 generated)
bemasc
Some things I'd particularly appreciate review on: 1. Is this an idiomatic design for distinguishing ...
7 years, 2 months ago (2013-10-18 00:50:13 UTC) #1
bemasc
On 2013/10/18 00:50:13, bemasc wrote: > Some things I'd particularly appreciate review on: > 1. ...
7 years, 2 months ago (2013-10-18 15:23:02 UTC) #2
Darren Krahn
Hey, I'm the unofficial owner of chromeos/attestation. The hard-coded key is only for performance -- ...
7 years, 2 months ago (2013-10-18 21:01:32 UTC) #3
bemasc
A changed landed yesterday to support self-signed certs with OpenSSL. That has now been merged ...
7 years, 2 months ago (2013-10-18 22:03:34 UTC) #4
bemasc
On 2013/10/18 21:01:32, Darren Krahn wrote: > Hey, I'm the unofficial owner of chromeos/attestation. The ...
7 years, 2 months ago (2013-10-18 22:25:34 UTC) #5
Ryan Sleevi
On 2013/10/18 15:23:02, bemasc wrote: > On 2013/10/18 00:50:13, bemasc wrote: > > Some things ...
7 years, 2 months ago (2013-10-18 22:44:44 UTC) #6
Ryan Sleevi
On 2013/10/18 00:50:13, bemasc wrote: > Some things I'd particularly appreciate review on: > 1. ...
7 years, 2 months ago (2013-10-18 22:45:13 UTC) #7
Ryan Sleevi
https://codereview.chromium.org/27832002/diff/457001/net/cert/x509_util.cc File net/cert/x509_util.cc (right): https://codereview.chromium.org/27832002/diff/457001/net/cert/x509_util.cc#newcode19 net/cert/x509_util.cc:19: static const uint16 kRSAKeyLength = 1024; Switching to SHA-256 ...
7 years, 2 months ago (2013-10-18 22:45:22 UTC) #8
bemasc
On 2013/10/18 22:45:13, Ryan Sleevi wrote: > On 2013/10/18 00:50:13, bemasc wrote: > > Some ...
7 years, 2 months ago (2013-10-18 22:52:22 UTC) #9
Ryan Sleevi
Maybe I missed something while reviewing, but why is it necessary to both specify the ...
7 years, 2 months ago (2013-10-18 22:57:36 UTC) #10
bemasc
On 2013/10/18 22:44:44, Ryan Sleevi wrote: > On 2013/10/18 15:23:02, bemasc wrote: > > On ...
7 years, 2 months ago (2013-10-19 00:37:53 UTC) #11
bemasc
https://codereview.chromium.org/27832002/diff/457001/net/cert/x509_util.cc File net/cert/x509_util.cc (right): https://codereview.chromium.org/27832002/diff/457001/net/cert/x509_util.cc#newcode19 net/cert/x509_util.cc:19: static const uint16 kRSAKeyLength = 1024; On 2013/10/18 22:45:23, ...
7 years, 2 months ago (2013-10-19 00:47:44 UTC) #12
bemasc
On 2013/10/18 22:57:36, Ryan Sleevi wrote: > Maybe I missed something while reviewing, but why ...
7 years, 2 months ago (2013-10-19 00:53:30 UTC) #13
bemasc
https://codereview.chromium.org/27832002/diff/457001/net/cert/x509_util.cc File net/cert/x509_util.cc (right): https://codereview.chromium.org/27832002/diff/457001/net/cert/x509_util.cc#newcode19 net/cert/x509_util.cc:19: static const uint16 kRSAKeyLength = 1024; On 2013/10/19 00:47:45, ...
7 years, 2 months ago (2013-10-21 17:46:05 UTC) #14
Ryan Sleevi
https://codereview.chromium.org/27832002/diff/457001/net/cert/x509_util.h File net/cert/x509_util.h (right): https://codereview.chromium.org/27832002/diff/457001/net/cert/x509_util.h#newcode52 net/cert/x509_util.h:52: crypto::HMAC::HashAlgorithm alg, On 2013/10/19 00:47:45, bemasc wrote: > On ...
7 years, 2 months ago (2013-10-21 17:56:13 UTC) #15
Ryan Sleevi
So, looks good, mod the crypto::HMAC concern. I'll give the final stamp if you can ...
7 years, 2 months ago (2013-10-21 17:58:00 UTC) #16
bemasc
On 2013/10/21 17:56:13, Ryan Sleevi wrote: > I see us either moving crypto::HMAC::HashAlgorithm into crypto/, ...
7 years, 2 months ago (2013-10-23 00:40:33 UTC) #17
Ryan Sleevi
lgtm https://codereview.chromium.org/27832002/diff/1277001/net/cert/x509_util.cc File net/cert/x509_util.cc (right): https://codereview.chromium.org/27832002/diff/1277001/net/cert/x509_util.cc#newcode75 net/cert/x509_util.cc:75: if (success) { style nit: Don't need braces ...
7 years, 1 month ago (2013-10-29 19:49:39 UTC) #18
bemasc
https://codereview.chromium.org/27832002/diff/1277001/net/cert/x509_util.cc File net/cert/x509_util.cc (right): https://codereview.chromium.org/27832002/diff/1277001/net/cert/x509_util.cc#newcode75 net/cert/x509_util.cc:75: if (success) { On 2013/10/29 19:49:40, Ryan Sleevi wrote: ...
7 years, 1 month ago (2013-10-29 20:25:25 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bemasc@chromium.org/27832002/1787001
7 years, 1 month ago (2013-10-29 20:45:37 UTC) #20
commit-bot: I haz the power
Failed to apply patch for net/cert/x509_util_openssl.cc: While running patch -p0 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 1 month ago (2013-10-29 20:45:48 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bemasc@chromium.org/27832002/2337001
7 years, 1 month ago (2013-10-30 00:22:56 UTC) #22
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=33298
7 years, 1 month ago (2013-10-30 01:19:09 UTC) #23
bemasc
This change is "fully reviewed" but needs some more approvals. wez: Please review minor change ...
7 years, 1 month ago (2013-10-30 19:03:13 UTC) #24
Ami GONE FROM CHROMIUM
Rubberstamp OWNERS LGTM for c/b/media/ but see comment below before acting on this LGTM. https://codereview.chromium.org/27832002/diff/2337001/content/browser/media/webrtc_identity_store.cc ...
7 years, 1 month ago (2013-10-30 19:21:56 UTC) #25
bemasc
https://codereview.chromium.org/27832002/diff/2337001/content/browser/media/webrtc_identity_store.cc File content/browser/media/webrtc_identity_store.cc (right): https://codereview.chromium.org/27832002/diff/2337001/content/browser/media/webrtc_identity_store.cc#newcode44 content/browser/media/webrtc_identity_store.cc:44: bool success = net::x509_util::CreateKeyAndSelfSignedCert( On 2013/10/30 19:21:57, Ami Fischman ...
7 years, 1 month ago (2013-10-30 19:30:48 UTC) #26
Wez
lgtm https://codereview.chromium.org/27832002/diff/2337001/remoting/base/rsa_key_pair.cc File remoting/base/rsa_key_pair.cc (right): https://codereview.chromium.org/27832002/diff/2337001/remoting/base/rsa_key_pair.cc#newcode98 remoting/base/rsa_key_pair.cc:98: // multiple signature algorithms. So should we be ...
7 years, 1 month ago (2013-10-30 19:45:07 UTC) #27
bemasc
https://codereview.chromium.org/27832002/diff/2337001/remoting/base/rsa_key_pair.cc File remoting/base/rsa_key_pair.cc (right): https://codereview.chromium.org/27832002/diff/2337001/remoting/base/rsa_key_pair.cc#newcode98 remoting/base/rsa_key_pair.cc:98: // multiple signature algorithms. On 2013/10/30 19:45:08, Wez wrote: ...
7 years, 1 month ago (2013-10-30 20:18:44 UTC) #28
Sergey Ulanov
https://codereview.chromium.org/27832002/diff/2337001/remoting/base/rsa_key_pair.cc File remoting/base/rsa_key_pair.cc (right): https://codereview.chromium.org/27832002/diff/2337001/remoting/base/rsa_key_pair.cc#newcode98 remoting/base/rsa_key_pair.cc:98: // multiple signature algorithms. Why signing the same key ...
7 years, 1 month ago (2013-10-31 06:25:27 UTC) #29
pastarmovj
attestation owner LGTM.
7 years, 1 month ago (2013-10-31 09:24:16 UTC) #30
Ryan Sleevi
On 2013/10/31 06:25:27, Sergey Ulanov wrote: > https://codereview.chromium.org/27832002/diff/2337001/remoting/base/rsa_key_pair.cc > File remoting/base/rsa_key_pair.cc (right): > > https://codereview.chromium.org/27832002/diff/2337001/remoting/base/rsa_key_pair.cc#newcode98 ...
7 years, 1 month ago (2013-10-31 17:28:07 UTC) #31
Sergey Ulanov
ok, remoting - LGTM On 2013/10/31 17:28:07, Ryan Sleevi wrote: > On 2013/10/31 06:25:27, Sergey ...
7 years, 1 month ago (2013-10-31 21:10:31 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bemasc@chromium.org/27832002/2337001
7 years, 1 month ago (2013-10-31 21:20:51 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bemasc@chromium.org/27832002/2337001
7 years, 1 month ago (2013-10-31 23:11:37 UTC) #34
commit-bot: I haz the power
7 years, 1 month ago (2013-11-01 05:14:31 UTC) #35
Message was sent while issue was closed.
Change committed as 232292

Powered by Google App Engine
This is Rietveld 408576698