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

Issue 634033002: Check whether or not a certificate is self-signed. (Closed)

Created:
6 years, 2 months ago by palmer
Modified:
6 years, 1 month ago
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Check whether or not a certificate is self-signed. This will enable telemetry, and possibly heuristics for gauging the severity of HTTPS authentication failures. BUG=392310 Committed: https://crrev.com/32b3d8ab60476036ea7d687f43f23e0b63796a5a Cr-Commit-Position: refs/heads/master@{#301912}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix Mac OS X build. #

Patch Set 3 : Fix Linux build. #

Patch Set 4 : Fix? Windows build. #

Patch Set 5 : More Windows fixing. #

Total comments: 4

Patch Set 6 : Fix Windows, go Full CSSM #

Patch Set 7 : Fix Windows really a lot #

Patch Set 8 : Once again, this is *Manos*... the *Hands*... of *Fate* #

Total comments: 11

Patch Set 9 : Clean up OpenSSL implementation. #

Patch Set 10 : OpenSSL implementation some more. #

Patch Set 11 : iOS implementation. #

Total comments: 7

Patch Set 12 : Scope those pointers. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -0 lines) Patch
M net/cert/x509_certificate.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M net/cert/x509_certificate_ios.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +11 lines, -0 lines 0 comments Download
M net/cert/x509_certificate_mac.cc View 1 2 3 4 5 1 chunk +37 lines, -0 lines 0 comments Download
M net/cert/x509_certificate_nss.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +9 lines, -0 lines 0 comments Download
M net/cert/x509_certificate_openssl.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +10 lines, -0 lines 0 comments Download
M net/cert/x509_certificate_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +14 lines, -0 lines 0 comments Download
M net/cert/x509_certificate_win.cc View 1 2 3 4 5 6 7 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (4 generated)
palmer
PTAL, thanks. Currently the only caller is the unit test, but in the future (soon?), ...
6 years, 2 months ago (2014-10-07 18:51:44 UTC) #2
willchan no longer on Chromium
Chris, did you add me because you needed a quick review? Otherwise, I'd wait for ...
6 years, 2 months ago (2014-10-07 19:27:25 UTC) #4
palmer
Adding some more OWNERS.
6 years, 2 months ago (2014-10-13 23:02:32 UTC) #6
palmer
Say, OWNERS, felt and I would like to land this so that we can do ...
6 years, 2 months ago (2014-10-16 17:30:12 UTC) #7
felt
let's get this party started: lgtm % comments https://codereview.chromium.org/634033002/diff/1/net/cert/x509_certificate_ios.cc File net/cert/x509_certificate_ios.cc (right): https://codereview.chromium.org/634033002/diff/1/net/cert/x509_certificate_ios.cc#newcode239 net/cert/x509_certificate_ios.cc:239: // ...
6 years, 2 months ago (2014-10-16 18:03:15 UTC) #8
agl
Self-signed certs are those where the subject and issuer names are equal. The signature doesn't ...
6 years, 2 months ago (2014-10-16 18:07:23 UTC) #9
Ryan Sleevi
On 2014/10/16 18:07:23, agl wrote: > Self-signed certs are those where the subject and issuer ...
6 years, 2 months ago (2014-10-16 18:14:21 UTC) #10
agl
On 2014/10/16 18:14:21, Ryan Sleevi wrote: > Not quite true. We have several cross-signed with ...
6 years, 2 months ago (2014-10-16 18:19:52 UTC) #11
Ryan Sleevi
On 2014/10/16 18:19:52, agl wrote: > On 2014/10/16 18:14:21, Ryan Sleevi wrote: > > Not ...
6 years, 2 months ago (2014-10-16 18:25:48 UTC) #12
palmer
So, for our experiments, we'd like to check that the signatures actually do or do ...
6 years, 2 months ago (2014-10-16 20:51:39 UTC) #13
Ryan Sleevi
https://codereview.chromium.org/634033002/diff/120001/net/cert/x509_certificate_mac.cc File net/cert/x509_certificate_mac.cc (right): https://codereview.chromium.org/634033002/diff/120001/net/cert/x509_certificate_mac.cc#newcode555 net/cert/x509_certificate_mac.cc:555: return X509_verify(cert.get(), key) == 1; Mixing BoringSSL types like ...
6 years, 2 months ago (2014-10-21 22:27:44 UTC) #14
palmer
https://codereview.chromium.org/634033002/diff/120001/net/cert/x509_certificate_mac.cc File net/cert/x509_certificate_mac.cc (right): https://codereview.chromium.org/634033002/diff/120001/net/cert/x509_certificate_mac.cc#newcode555 net/cert/x509_certificate_mac.cc:555: return X509_verify(cert.get(), key) == 1; On 2014/10/21 22:27:43, Ryan ...
6 years, 2 months ago (2014-10-21 23:02:13 UTC) #15
palmer
Super double mega-thanks for your CSSM code, Ryan!
6 years, 2 months ago (2014-10-21 23:07:05 UTC) #16
palmer
rsleevi: Looks like Windows has finally acquiesced to my demands. LGTY?
6 years, 2 months ago (2014-10-22 01:54:58 UTC) #17
Ryan Sleevi
https://codereview.chromium.org/634033002/diff/180001/net/cert/x509_certificate_ios.cc File net/cert/x509_certificate_ios.cc (right): https://codereview.chromium.org/634033002/diff/180001/net/cert/x509_certificate_ios.cc#newcode255 net/cert/x509_certificate_ios.cc:255: // TODO(palmer): Implement this. Are you planning on doing ...
6 years, 2 months ago (2014-10-24 22:56:25 UTC) #18
palmer
https://codereview.chromium.org/634033002/diff/180001/net/cert/x509_certificate_ios.cc File net/cert/x509_certificate_ios.cc (right): https://codereview.chromium.org/634033002/diff/180001/net/cert/x509_certificate_ios.cc#newcode255 net/cert/x509_certificate_ios.cc:255: // TODO(palmer): Implement this. > Are you planning on ...
6 years, 2 months ago (2014-10-24 23:32:46 UTC) #19
Ryan Sleevi
https://codereview.chromium.org/634033002/diff/180001/net/cert/x509_certificate_ios.cc File net/cert/x509_certificate_ios.cc (right): https://codereview.chromium.org/634033002/diff/180001/net/cert/x509_certificate_ios.cc#newcode255 net/cert/x509_certificate_ios.cc:255: // TODO(palmer): Implement this. On 2014/10/24 23:32:46, Chromium Palmer ...
6 years, 2 months ago (2014-10-24 23:46:53 UTC) #20
palmer
https://codereview.chromium.org/634033002/diff/180001/net/cert/x509_certificate_ios.cc File net/cert/x509_certificate_ios.cc (right): https://codereview.chromium.org/634033002/diff/180001/net/cert/x509_certificate_ios.cc#newcode255 net/cert/x509_certificate_ios.cc:255: // TODO(palmer): Implement this. > This is iOS code, ...
6 years, 1 month ago (2014-10-27 21:20:27 UTC) #21
Ryan Sleevi
https://codereview.chromium.org/634033002/diff/180001/net/cert/x509_certificate_ios.cc File net/cert/x509_certificate_ios.cc (right): https://codereview.chromium.org/634033002/diff/180001/net/cert/x509_certificate_ios.cc#newcode255 net/cert/x509_certificate_ios.cc:255: // TODO(palmer): Implement this. On 2014/10/27 21:20:27, Chromium Palmer ...
6 years, 1 month ago (2014-10-27 21:22:17 UTC) #22
palmer
> The same one you're using in the _nss file? :) :] Done.
6 years, 1 month ago (2014-10-27 23:06:32 UTC) #23
Ryan Sleevi
Two BUGS that need to be fixed and one nit, but I'm gonna go ahead ...
6 years, 1 month ago (2014-10-27 23:33:13 UTC) #24
palmer
https://codereview.chromium.org/634033002/diff/240001/net/cert/x509_certificate_ios.cc File net/cert/x509_certificate_ios.cc (right): https://codereview.chromium.org/634033002/diff/240001/net/cert/x509_certificate_ios.cc#newcode256 net/cert/x509_certificate_ios.cc:256: SECKEYPublicKey* public_key = CERT_ExtractPublicKey(nss_cert.cert_handle()); > BUG: You're leaking this ...
6 years, 1 month ago (2014-10-28 00:59:38 UTC) #25
Ryan Sleevi
On 2014/10/28 00:59:38, Chromium Palmer wrote: > https://codereview.chromium.org/634033002/diff/240001/net/cert/x509_certificate_ios.cc > File net/cert/x509_certificate_ios.cc (right): > > https://codereview.chromium.org/634033002/diff/240001/net/cert/x509_certificate_ios.cc#newcode256 ...
6 years, 1 month ago (2014-10-28 01:24:58 UTC) #26
palmer
https://codereview.chromium.org/634033002/diff/240001/net/cert/x509_certificate_ios.cc File net/cert/x509_certificate_ios.cc (right): https://codereview.chromium.org/634033002/diff/240001/net/cert/x509_certificate_ios.cc#newcode256 net/cert/x509_certificate_ios.cc:256: SECKEYPublicKey* public_key = CERT_ExtractPublicKey(nss_cert.cert_handle()); On 2014/10/27 23:33:13, Ryan Sleevi ...
6 years, 1 month ago (2014-10-28 23:13:42 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/634033002/260001
6 years, 1 month ago (2014-10-29 18:45:38 UTC) #29
commit-bot: I haz the power
Committed patchset #12 (id:260001)
6 years, 1 month ago (2014-10-29 19:51:29 UTC) #30
commit-bot: I haz the power
6 years, 1 month ago (2014-10-29 19:52:42 UTC) #31
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/32b3d8ab60476036ea7d687f43f23e0b63796a5a
Cr-Commit-Position: refs/heads/master@{#301912}

Powered by Google App Engine
This is Rietveld 408576698