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

Issue 8296014: Use NSS to generate Origin-Bound Certs on Win and Mac. (Closed)

Created:
9 years, 2 months ago by mattm
Modified:
9 years, 2 months ago
Reviewers:
wtc
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Use NSS to generate Origin-Bound Certs on Win and Mac. The platform RSAPrivateKey is used to generate the private key, which is then imported into NSS to generate the certificate. X509Certificate::CreateOriginBound is moved to x509_util::CreateOriginBoundCert so it can be shared by those platforms, and removes the unnecessary X509Certificate generation step. BUG=88782 TEST=X509UtilNSSTest.CreateOriginBoundCert & manual testing: try on win or mac, check if generated cert has the OBC extension. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=105997

Patch Set 1 #

Patch Set 2 : address other points of original review too #

Total comments: 33

Patch Set 3 : review changes #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+583 lines, -382 lines) Patch
M crypto/scoped_nss_types.h View 2 chunks +7 lines, -0 lines 0 comments Download
M net/base/net_error_list.h View 1 2 1 chunk +0 lines, -3 lines 1 comment Download
M net/base/origin_bound_cert_service.cc View 1 3 chunks +5 lines, -17 lines 0 comments Download
M net/base/x509_certificate.h View 1 chunk +0 lines, -12 lines 0 comments Download
M net/base/x509_certificate_mac.cc View 1 chunk +0 lines, -19 lines 0 comments Download
M net/base/x509_certificate_nss.cc View 1 5 chunks +8 lines, -231 lines 0 comments Download
M net/base/x509_certificate_openssl.cc View 1 chunk +0 lines, -11 lines 0 comments Download
M net/base/x509_certificate_unittest.cc View 2 chunks +0 lines, -79 lines 0 comments Download
M net/base/x509_certificate_win.cc View 1 chunk +0 lines, -10 lines 0 comments Download
A net/base/x509_util.h View 1 2 1 chunk +39 lines, -0 lines 0 comments Download
A net/base/x509_util_nss.h View 1 2 1 chunk +37 lines, -0 lines 0 comments Download
A net/base/x509_util_nss.cc View 1 2 1 chunk +318 lines, -0 lines 0 comments Download
A net/base/x509_util_nss_unittest.cc View 1 2 1 chunk +106 lines, -0 lines 0 comments Download
M net/base/x509_util_openssl.cc View 1 2 2 chunks +11 lines, -0 lines 0 comments Download
A net/base/x509_util_openssl_unittest.cc View 1 1 chunk +29 lines, -0 lines 0 comments Download
M net/net.gyp View 1 2 5 chunks +23 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
mattm
9 years, 2 months ago (2011-10-15 02:45:39 UTC) #1
wtc
Patch Set 2 LGTM. Please mention the new X509UtilNSSTest.CreateOriginBoundCert unit test in the TEST= field ...
9 years, 2 months ago (2011-10-17 19:09:27 UTC) #2
mattm
http://codereview.chromium.org/8296014/diff/2001/net/base/origin_bound_cert_service.cc File net/base/origin_bound_cert_service.cc (left): http://codereview.chromium.org/8296014/diff/2001/net/base/origin_bound_cert_service.cc#oldcode357 net/base/origin_bound_cert_service.cc:357: return ERR_GET_CERT_BYTES_FAILED; On 2011/10/17 19:09:27, wtc wrote: > > ...
9 years, 2 months ago (2011-10-17 22:54:19 UTC) #3
wtc
9 years, 2 months ago (2011-10-17 23:14:31 UTC) #4
Patch Set 3 LGTM!

http://codereview.chromium.org/8296014/diff/9001/net/base/net_error_list.h
File net/base/net_error_list.h (left):

http://codereview.chromium.org/8296014/diff/9001/net/base/net_error_list.h#ol...
net/base/net_error_list.h:617: NET_ERROR(GET_CERT_BYTES_FAILED, -713)

In general we can't remove an error code without reserving
the code value (to avoid confusion in bug reports, for example).

Since this was only used by code disabled by default, this
is OK.

Powered by Google App Engine
This is Rietveld 408576698