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

Issue 10407072: certificate manager: Disable export option for TPM-backed certs. (Closed)

Created:
8 years, 7 months ago by hshi1
Modified:
8 years, 7 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, arv (Not doing code reviews), darin-cc_chromium.org
Visibility:
Public.

Description

certificate manager: Disable export option for TPM-backed certs. Add a separate boolean property to indicate that a client certificate is hardware (TPM) backed. Certificate manager should disable the export button for such certificates because there is no way to extract the private key from the TPM. BUG=126886 TEST=lumpy Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=138314 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=138595

Patch Set 1 #

Patch Set 2 : Fix compile error in cert_database_nss.cc #

Total comments: 6

Patch Set 3 : Move the extractability test out of net/ #

Total comments: 4

Patch Set 4 : Add comments as suggested by wtc. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -0 lines) Patch
M chrome/browser/certificate_manager_model.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options2/certificate_manager_handler2.cc View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 38 (0 generated)
hshi1
Dear Reviewers -- could you please comment on the Patch Set #1 for (crbug.com/126886). Thanks! ...
8 years, 7 months ago (2012-05-21 21:03:38 UTC) #1
Evan Stade
options2 lgtm http://codereview.chromium.org/10407072/diff/7001/chrome/browser/resources/options2/certificate_manager.js File chrome/browser/resources/options2/certificate_manager.js (right): http://codereview.chromium.org/10407072/diff/7001/chrome/browser/resources/options2/certificate_manager.js#newcode119 chrome/browser/resources/options2/certificate_manager.js:119: var hardwareBacked = !!data && data.hardware_backed; you ...
8 years, 7 months ago (2012-05-21 21:14:58 UTC) #2
xiyuan
certificate_manager_model.cc lgtm
8 years, 7 months ago (2012-05-21 21:17:26 UTC) #3
hshi1
http://codereview.chromium.org/10407072/diff/7001/chrome/browser/resources/options2/certificate_manager.js File chrome/browser/resources/options2/certificate_manager.js (right): http://codereview.chromium.org/10407072/diff/7001/chrome/browser/resources/options2/certificate_manager.js#newcode119 chrome/browser/resources/options2/certificate_manager.js:119: var hardwareBacked = !!data && data.hardware_backed; I'm not really ...
8 years, 7 months ago (2012-05-21 21:17:44 UTC) #4
Ryan Sleevi
My understanding is that chromeos supports multiple types of certificate export. While we certainly cannot ...
8 years, 7 months ago (2012-05-21 21:19:23 UTC) #5
hshi1
Ryan - but are you fine with the addition of bool IsHardwareBacked(cert) method in cert ...
8 years, 7 months ago (2012-05-21 21:25:17 UTC) #6
hshi1
+ Greg to the discussion as suggested by Zel. My understanding so far is that ...
8 years, 7 months ago (2012-05-21 21:30:44 UTC) #7
dkrahn
I like the idea of allowing export of public cert only as long as it's ...
8 years, 7 months ago (2012-05-21 21:34:01 UTC) #8
Greg Spencer (Chromium)
I think I agree with Ryan, but maybe what we should do is allow export ...
8 years, 7 months ago (2012-05-21 21:39:40 UTC) #9
sumitg
On Mon, May 21, 2012 at 2:34 PM, Darren Krahn <dkrahn@google.com> wrote: > I like ...
8 years, 7 months ago (2012-05-21 21:42:35 UTC) #10
hshi
Would it be OK to land this patch first? I would suggest to file a ...
8 years, 7 months ago (2012-05-21 21:49:12 UTC) #11
Ryan Sleevi
On 2012/05/21 21:39:40, Greg Spencer (Chromium) wrote: > I think I agree with Ryan, but ...
8 years, 7 months ago (2012-05-21 21:55:33 UTC) #12
Greg Spencer (Chromium)
On 2012/05/21 21:55:33, Ryan Sleevi wrote: > On 2012/05/21 21:39:40, Greg Spencer (Chromium) wrote: > ...
8 years, 7 months ago (2012-05-21 21:59:51 UTC) #13
hshi
I agree too, this is essentially the difference between "backup (export-personal-cert)" and "export". Question: For ...
8 years, 7 months ago (2012-05-21 22:00:32 UTC) #14
Ryan Sleevi
http://codereview.chromium.org/10407072/diff/7001/chrome/browser/ui/webui/options2/certificate_manager_handler2.cc File chrome/browser/ui/webui/options2/certificate_manager_handler2.cc (right): http://codereview.chromium.org/10407072/diff/7001/chrome/browser/ui/webui/options2/certificate_manager_handler2.cc#newcode42 chrome/browser/ui/webui/options2/certificate_manager_handler2.cc:42: static const char kHardwareBackedId[] = "hardware_backed"; See other comments, ...
8 years, 7 months ago (2012-05-21 22:08:32 UTC) #15
hshi1
Ryan, thanks for your suggestions. I uploaded Patch Set #3 which removed the changes in ...
8 years, 7 months ago (2012-05-21 22:28:35 UTC) #16
Ryan Sleevi
Thanks hshi. This works for me (for now :-p). I'd like to see us able ...
8 years, 7 months ago (2012-05-21 22:32:47 UTC) #17
hshi
I have filed (crbug.com/129077) to track this issue. Thanks, Haixia On Mon, May 21, 2012 ...
8 years, 7 months ago (2012-05-21 22:43:56 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hshi@chromium.org/10407072/8005
8 years, 7 months ago (2012-05-21 22:53:04 UTC) #19
commit-bot: I haz the power
Try job failure for 10407072-8005 (retry) on win_rel for steps "base_unittests, sync_unit_tests". It's a second ...
8 years, 7 months ago (2012-05-22 03:12:24 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hshi@chromium.org/10407072/8005
8 years, 7 months ago (2012-05-22 03:17:34 UTC) #21
commit-bot: I haz the power
Try job failure for 10407072-8005 (retry) (previous was lost) on win_rel for steps "base_unittests, sync_unit_tests". ...
8 years, 7 months ago (2012-05-22 07:57:32 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hshi@chromium.org/10407072/8005
8 years, 7 months ago (2012-05-22 07:59:04 UTC) #23
commit-bot: I haz the power
Try job failure for 10407072-8005 (retry) (retry) on win_rel for steps "base_unittests, sync_unit_tests". It's a ...
8 years, 7 months ago (2012-05-22 11:34:31 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hshi@chromium.org/10407072/8005
8 years, 7 months ago (2012-05-22 13:23:23 UTC) #25
commit-bot: I haz the power
Try job failure for 10407072-8005 (retry) on win_rel for steps "base_unittests, sync_unit_tests". It's a second ...
8 years, 7 months ago (2012-05-22 15:24:07 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hshi@chromium.org/10407072/8005
8 years, 7 months ago (2012-05-22 16:20:45 UTC) #27
commit-bot: I haz the power
Try job failure for 10407072-8005 (retry) on win for step "compile" (clobber build). It's a ...
8 years, 7 months ago (2012-05-22 17:41:59 UTC) #28
wtc
Patch set 3 LGTM. I suggest some comment changes. https://chromiumcodereview.appspot.com/10407072/diff/8005/chrome/browser/certificate_manager_model.h File chrome/browser/certificate_manager_model.h (right): https://chromiumcodereview.appspot.com/10407072/diff/8005/chrome/browser/certificate_manager_model.h#newcode103 chrome/browser/certificate_manager_model.h:103: ...
8 years, 7 months ago (2012-05-22 23:43:46 UTC) #29
hshi1
https://chromiumcodereview.appspot.com/10407072/diff/8005/chrome/browser/certificate_manager_model.h File chrome/browser/certificate_manager_model.h (right): https://chromiumcodereview.appspot.com/10407072/diff/8005/chrome/browser/certificate_manager_model.h#newcode103 chrome/browser/certificate_manager_model.h:103: // IsHardwareBacked returns true if |cert| is hardware backed. ...
8 years, 7 months ago (2012-05-23 00:03:29 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hshi@chromium.org/10407072/10009
8 years, 7 months ago (2012-05-23 00:04:29 UTC) #31
commit-bot: I haz the power
Try job failure for 10407072-10009 (retry) on win_rel for step "sync_unit_tests". It's a second try, ...
8 years, 7 months ago (2012-05-23 04:35:25 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hshi@chromium.org/10407072/10009
8 years, 7 months ago (2012-05-23 04:41:35 UTC) #33
commit-bot: I haz the power
Try job failure for 10407072-10009 (retry) on win for step "compile" (clobber build). It's a ...
8 years, 7 months ago (2012-05-23 07:04:45 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hshi@chromium.org/10407072/10009
8 years, 7 months ago (2012-05-23 13:20:20 UTC) #35
commit-bot: I haz the power
Try job failure for 10407072-10009 (retry) on win_rel for step "sync_unit_tests". It's a second try, ...
8 years, 7 months ago (2012-05-23 16:29:55 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hshi@chromium.org/10407072/10009
8 years, 7 months ago (2012-05-23 18:16:57 UTC) #37
commit-bot: I haz the power
8 years, 7 months ago (2012-05-23 20:45:09 UTC) #38
Change committed as 138595

Powered by Google App Engine
This is Rietveld 408576698