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

Issue 18121007: *WIP* Store NSS slots per profile. Move keygen to chrome. (Closed)

Created:
7 years, 5 months ago by mattm
Modified:
7 years ago
Reviewers:
Ryan Sleevi
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, cbentzel+watch_chromium.org, jam
Visibility:
Public.

Description

*WIP* Store NSS slots per profile. Move keygen to chrome. BUG=218653

Patch Set 1 #

Total comments: 4

Patch Set 2 : rebase #

Patch Set 3 : cleanups, add test for chrome keygen class #

Total comments: 6

Patch Set 4 : rebase #

Patch Set 5 : kinda working #

Patch Set 6 : better? #

Patch Set 7 : client auth almost working #

Patch Set 8 : rebase #

Patch Set 9 : cert manager basics working #

Patch Set 10 : rebase to r230598 #

Patch Set 11 : put GetClientCertStore into ResourceContext, fix opening primary nssdb twice #

Patch Set 12 : sync with review changes #

Patch Set 13 : sync with review changes again #

Patch Set 14 : sync to r231946 #

Patch Set 15 : Move stuff into crypto/ and net/ #

Patch Set 16 : move keygen back to content #

Patch Set 17 : certdb: handle GetCertTrust and IsUntrusted, failed attempt to handle SetCertTrust #

Patch Set 18 : now rebased on top of 53763003 and 61643007 #

Patch Set 19 : rebase to 236603 #

Patch Set 20 : rebase, updates, etc #

Patch Set 21 : more refactoring #

Unified diffs Side-by-side diffs Delta from patch set Stats (+960 lines, -182 lines) Patch
M chrome/browser/certificate_manager_model.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 4 chunks +19 lines, -1 line 0 comments Download
M chrome/browser/certificate_manager_model.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +52 lines, -3 lines 0 comments Download
M chrome/browser/net/nss_context.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/net/nss_context_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/net/nss_context_linux.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/certificate_manager.html View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/resources/options/certificate_manager.js View 1 2 3 4 5 6 7 8 3 chunks +6 lines, -37 lines 0 comments Download
M chrome/browser/ui/webui/options/certificate_manager_handler.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/certificate_manager_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 5 chunks +16 lines, -31 lines 0 comments Download
M chrome/third_party/mozilla_security_manager/nsNSSCertHelper.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M net/cert/cert_database.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +31 lines, -17 lines 0 comments Download
M net/cert/cert_database.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -1 line 0 comments Download
M net/cert/cert_database_nss.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +12 lines, -13 lines 0 comments Download
M net/cert/nss_cert_database.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 6 chunks +40 lines, -39 lines 0 comments Download
M net/cert/nss_cert_database.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 9 chunks +82 lines, -19 lines 0 comments Download
A net/cert/nss_cert_database_chromeos.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +75 lines, -0 lines 0 comments Download
A net/cert/nss_cert_database_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +304 lines, -0 lines 0 comments Download
A net/cert/nss_profile_filter_chromeos.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +50 lines, -0 lines 0 comments Download
A net/cert/nss_profile_filter_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +98 lines, -0 lines 0 comments Download
M net/net.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +6 lines, -0 lines 0 comments Download
A net/ssl/client_cert_store_chromeos.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +45 lines, -0 lines 0 comments Download
A net/ssl/client_cert_store_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +59 lines, -0 lines 0 comments Download
M net/ssl/client_cert_store_impl_nss.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +11 lines, -0 lines 0 comments Download
M net/third_party/mozilla_security_manager/nsNSSCertificateDB.h View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -1 line 0 comments Download
M net/third_party/mozilla_security_manager/nsNSSCertificateDB.cpp View 1 2 3 4 5 6 7 8 3 chunks +5 lines, -16 lines 0 comments Download
M net/third_party/mozilla_security_manager/nsPKCS12Blob.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 11 (0 generated)
mattm
Hey Ryan, just wanted a quick opinion on this. Obviously still needs some cleanups and ...
7 years, 5 months ago (2013-06-28 02:06:33 UTC) #1
Ryan Sleevi
I think it's trending in the right direction. I agree that storing the public/private slot ...
7 years, 5 months ago (2013-06-28 17:01:59 UTC) #2
Ryan Sleevi
Is this dead, given priorities?
7 years, 3 months ago (2013-09-12 21:41:08 UTC) #3
mattm
On 2013/09/12 21:41:08, Ryan Sleevi wrote: > Is this dead, given priorities? It's all very ...
7 years, 3 months ago (2013-09-12 21:46:32 UTC) #4
mattm
I just uploaded my latest changes. Main thing I'm wondering about now is how to ...
7 years, 3 months ago (2013-09-12 22:11:40 UTC) #5
Ryan Sleevi
I have no objections to having chrome/ pass the ClientCertStore through to content/. That was ...
7 years, 2 months ago (2013-10-09 19:18:00 UTC) #6
mattm
I had another question about initialization async. For example, nss_util::GetPrivateNSSKeySlot will currently return null until ...
7 years, 2 months ago (2013-10-09 23:52:37 UTC) #7
mattm
new patches uploaded. In patchset 5 I was aiming to implement the meat of the ...
7 years, 2 months ago (2013-10-15 05:18:23 UTC) #8
mattm
I uploaded another patchset. Client auth is basically working except that CERT_FindUserCertsByUsage doesn't return any ...
7 years, 2 months ago (2013-10-16 07:03:26 UTC) #9
Ryan Sleevi
On 2013/10/16 07:03:26, mattm wrote: > I uploaded another patchset. Client auth is basically working ...
7 years, 1 month ago (2013-11-21 23:49:45 UTC) #10
mattm
7 years, 1 month ago (2013-11-21 23:55:03 UTC) #11
On 2013/11/21 23:49:45, Ryan Sleevi wrote:
> On 2013/10/16 07:03:26, mattm wrote:
> > I uploaded another patchset.  Client auth is basically working except that
> > CERT_FindUserCertsByUsage doesn't return any certs for the 2nd tpm slot.
> > 
> > I dug a little bit into it, the CERT_GetCertNicknames in
> > CERT_FindUserCertsByUsage finds the cert from the 2nd slot, but the
> > CERT_FindCertByNickname doesn't find the matching cert.
> > 
> > Other things I checked:
> > If I use the cert manager, both show up (it doesn't do any filtering yet).
> > 
> > PK11_NeedLogin returns false on both tpm slots.
> > 
> > If I log in to the 2nd profile as the primary profile,
> CERT_FindUserCertsByUsage
> > finds the cert.
> > 
> > 
> > I'll try to dig more on this tomorrow, but any ideas that jump out?
> 
> I seem to recall you dug in and filed a Mozilla bug on this, right?
> 
> Is this something I should be working on for the Mozilla 3.15.5 release?

I think I only filed it in crbug/315285.  I will file an upstream one too
though.  I don't think it needs to make a specific NSS release since we could
easily include a patch file in chromeos's ebuild, but it would be good to have a
fix for m33.

Powered by Google App Engine
This is Rietveld 408576698