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

Issue 6312157: Add ability to create self signed certs to mac. (Closed)

Created:
9 years, 10 months ago by dmac
Modified:
9 years, 7 months ago
Reviewers:
hawk, wtc, Ryan Sleevi
CC:
chromium-reviews, darin-cc_chromium.org, cbentzel+watch_chromium.org, Paweł Hajdan Jr., pam+watch_chromium.org, brettw-cc_chromium.org, jamiewalch+watch_chromium.org, garykac+watch_chromium.org, simonmorris+watch_chromium.org, hclam+watch_chromium.org, wez+watch_chromium.org, dmaclach+watch_chromium.org, lambroslambrou+watch_chromium.org, ajwong+watch_chromium.org, sergeyu+watch_chromium.org
Visibility:
Public.

Description

Add ability to create self signed certs to mac. BUG=67929 TEST=BUILD Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=74115

Patch Set 1 #

Total comments: 23

Patch Set 2 : Fixed up bad public_key_ use, and a bad mask #

Patch Set 3 : Fixes based on rsleevi's comments #

Patch Set 4 : clean up the code a little more #

Patch Set 5 : More code cleanup #

Total comments: 15
Unified diffs Side-by-side diffs Delta from patch set Stats (+533 lines, -50 lines) Patch
M base/crypto/cssm_init.h View 1 2 3 4 3 chunks +30 lines, -1 line 1 comment Download
M base/crypto/cssm_init.cc View 1 2 3 4 7 chunks +102 lines, -32 lines 3 comments Download
M base/crypto/rsa_private_key.h View 1 2 3 chunks +6 lines, -0 lines 0 comments Download
M base/crypto/rsa_private_key.cc View 1 2 3 1 chunk +17 lines, -0 lines 1 comment Download
M base/crypto/rsa_private_key_mac.cc View 1 2 3 5 chunks +45 lines, -6 lines 0 comments Download
M base/crypto/signature_creator_mac.cc View 3 4 1 chunk +3 lines, -7 lines 0 comments Download
M net/DEPS View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M net/base/x509_certificate_mac.cc View 1 2 3 4 6 chunks +232 lines, -3 lines 10 comments Download
M net/base/x509_certificate_unittest.cc View 1 2 2 chunks +97 lines, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
dmac
9 years, 10 months ago (2011-02-04 21:42:26 UTC) #1
dmac
Add rsleevi to the review
9 years, 10 months ago (2011-02-04 21:44:12 UTC) #2
Ryan Sleevi
More nits than bugs, which is always a good thing :-) A few leaks, but ...
9 years, 10 months ago (2011-02-05 00:23:37 UTC) #3
dmac
Ryan, I think I got everything you pointed out. Can you take another look-see? http://codereview.chromium.org/6312157/diff/1/base/crypto/cssm_init.cc ...
9 years, 10 months ago (2011-02-08 01:23:45 UTC) #4
Ryan Sleevi
LGTM. Few super-small style nits, nothing requiring re-review. http://codereview.chromium.org/6312157/diff/8002/base/crypto/rsa_private_key.cc File base/crypto/rsa_private_key.cc (right): http://codereview.chromium.org/6312157/diff/8002/base/crypto/rsa_private_key.cc#newcode104 base/crypto/rsa_private_key.cc:104: // ...
9 years, 10 months ago (2011-02-08 02:27:55 UTC) #5
wtc
I suggest some changes below. My main complaint is that we only went halfway in ...
9 years, 10 months ago (2011-02-09 01:03:31 UTC) #6
Ryan Sleevi
9 years, 10 months ago (2011-02-09 01:54:59 UTC) #7
On 2011/02/09 01:03:31, wtc wrote:
> I suggest some changes below.
> 
> My main complaint is that we only went halfway in avoiding
> using NSS outside the SSL code.  Perhaps I underestimated the
> difficulty and this is the best we can do.  Still, I hope we
> can avoid using the NSS CERT_xxx functions by changing the
> 'subject' input parameter of X509Certificate::CreateSelfSigned
> so that no parsing is needed.
> 

wtc: For what it's worth, the Apple name routines are so buggy/broken that one
of my CLs explicitly uses NSS for the name parsing (it's towards the end of the
queue ;p). The purpose in that CL to find acceptable client certificates. Right
now, we do a poor-man's parse and hope for the best - but it's equally likely to
exclude valid certs as include invalid ones. Last I looked, the CERTName
functions were linked in due to libssl using them, so I don't know if it's
adding particular code overhead. That's why I think, on Mac at least, this isn't
too bad, because there really is nothing comparable or even decent offered by
the system.

Powered by Google App Engine
This is Rietveld 408576698