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

Issue 8400075: Fix the "certificate is not yet valid" error for server certificates (Closed)

Created:
9 years, 1 month ago by wtc
Modified:
9 years, 1 month ago
Reviewers:
agl, Ryan Sleevi
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Fix the "certificate is not yet valid" error for server certificates issued by a VeriSign intermediate CA. Change the CertVerifier cache to identify a certificate chain by the hash of the entire chain rather than just the server certificate. This requires adding X509Certificate::chain_fingerprint(), and the X509Certificate::CalculateChainFingerprint() method to compute the chain fingerprint. R=agl@chromium.org,rsleevi@chromium.org BUG=101555 TEST=X509CertificateTest.ChainFingerprints and CertVerifierTest.DifferentCACerts in net_unittests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=107888

Patch Set 1 #

Total comments: 7

Patch Set 2 : Remove the unrelated sslsock.c from the CL #

Total comments: 10

Patch Set 3 : Switch to PEM files. Implement CalculateChainFingerprint for Windows. #

Total comments: 2

Patch Set 4 : Fix Windows compilation errors. #

Total comments: 2

Patch Set 5 : Use NSS BLAPI. Add comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+451 lines, -3 lines) Patch
M net/base/cert_verifier.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M net/base/cert_verifier_unittest.cc View 1 2 2 chunks +67 lines, -0 lines 0 comments Download
M net/base/x509_certificate.h View 3 chunks +12 lines, -0 lines 0 comments Download
M net/base/x509_certificate.cc View 2 chunks +2 lines, -1 line 0 comments Download
M net/base/x509_certificate_mac.cc View 2 chunks +25 lines, -0 lines 0 comments Download
M net/base/x509_certificate_nss.cc View 2 chunks +21 lines, -0 lines 0 comments Download
M net/base/x509_certificate_openssl.cc View 3 chunks +22 lines, -0 lines 0 comments Download
M net/base/x509_certificate_unittest.cc View 1 2 1 chunk +41 lines, -0 lines 0 comments Download
M net/base/x509_certificate_win.cc View 1 2 3 4 3 chunks +28 lines, -0 lines 0 comments Download
M net/data/ssl/certificates/README View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
A net/data/ssl/certificates/salesforce_com_test.pem View 1 2 1 chunk +81 lines, -0 lines 0 comments Download
A net/data/ssl/certificates/verisign_intermediate_ca_2011.pem View 1 2 1 chunk +71 lines, -0 lines 0 comments Download
A net/data/ssl/certificates/verisign_intermediate_ca_2016.pem View 1 2 1 chunk +71 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
wtc
Please review. You can review it in the following order. x509_certificate.h: new methods chain_fingerprint() and ...
9 years, 1 month ago (2011-10-28 22:24:04 UTC) #1
Ryan Sleevi
I haven't looked closely at the SHA-1 implementations yet, because I'm wondering whether or not ...
9 years, 1 month ago (2011-10-28 22:47:00 UTC) #2
Ryan Sleevi
On 2011/10/28 22:47:00, Ryan Sleevi wrote: <snip> > - I don't think it belongs in ...
9 years, 1 month ago (2011-10-28 22:48:23 UTC) #3
wtc
rsleevi: thank you for the review and suggestions. http://codereview.chromium.org/8400075/diff/1/net/data/ssl/certificates/README File net/data/ssl/certificates/README (right): http://codereview.chromium.org/8400075/diff/1/net/data/ssl/certificates/README#newcode60 net/data/ssl/certificates/README:60: - ...
9 years, 1 month ago (2011-10-28 23:21:37 UTC) #4
Ryan Sleevi
http://codereview.chromium.org/8400075/diff/1/net/data/ssl/certificates/README File net/data/ssl/certificates/README (right): http://codereview.chromium.org/8400075/diff/1/net/data/ssl/certificates/README#newcode60 net/data/ssl/certificates/README:60: - salesforce_com_test.der On 2011/10/28 23:21:37, wtc wrote: > > ...
9 years, 1 month ago (2011-10-28 23:32:43 UTC) #5
agl
LGTM. I'd suggest landing a minimal change first because it's a merge candidate. I think ...
9 years, 1 month ago (2011-10-28 23:45:47 UTC) #6
Ryan Sleevi
I agree with agl's prioritization (smaller is better for the merge), which is why I ...
9 years, 1 month ago (2011-10-28 23:55:02 UTC) #7
wtc
Please review Patch Set 3. Thanks. I believe I have addressed all of your review ...
9 years, 1 month ago (2011-10-29 01:32:03 UTC) #8
Ryan Sleevi
Thanks for clarifying. I wonder, should a test also be added (in a follow-up, not ...
9 years, 1 month ago (2011-10-29 02:53:15 UTC) #9
wtc
http://codereview.chromium.org/8400075/diff/1019/net/base/x509_certificate_win.cc File net/base/x509_certificate_win.cc (right): http://codereview.chromium.org/8400075/diff/1019/net/base/x509_certificate_win.cc#newcode1025 net/base/x509_certificate_win.cc:1025: SHA1Fingerprint sha1; On 2011/10/29 02:53:15, Ryan Sleevi wrote: > ...
9 years, 1 month ago (2011-10-29 05:08:34 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wtc@chromium.org/8400075/23
9 years, 1 month ago (2011-10-29 22:40:09 UTC) #11
commit-bot: I haz the power
9 years, 1 month ago (2011-10-29 23:45:41 UTC) #12
Change committed as 107888

Powered by Google App Engine
This is Rietveld 408576698