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

Issue 1717123002: Allow ${CERT_SAN_EMAIL} and ${CERT_SAN_UPN} in the ONC Identity field (Closed)

Created:
4 years, 10 months ago by Kevin Cernekee
Modified:
4 years, 9 months ago
Reviewers:
stevenjb, Ryan Sleevi
CC:
chromium-reviews, stevenjb+watch_chromium.org, oshima+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow ${CERT_SAN_EMAIL} and ${CERT_SAN_UPN} in the ONC Identity field Currently enterprise customers can specify ${LOGIN_ID} or ${LOGIN_EMAIL} to tell Chrome OS to substitute user identity information into an EAP configuration. However, in some installations, the login ID for the Chromebook does not match the login ID for the EAP-TLS wireless network; instead, the EAP-TLS identity is stored in the subjectAltName field in the client certificate. Add code to Chrome to allow this field to be extracted if so configured in CPanel. BUG=549659 TEST=`chromeos_unittests` TEST=manually configure EAP-TLS network in CPanel, then watch the `freeradius -X` logs during connection Committed: https://crrev.com/969c512689fa55c1b3a4be0d82c2f2024bb0699a Cr-Commit-Position: refs/heads/master@{#379056}

Patch Set 1 #

Patch Set 2 : add UPN support; use the updated x509_util API #

Patch Set 3 : use the new client_3 cert for SAN testing #

Total comments: 10

Patch Set 4 : incorporate code review feedback #

Patch Set 5 : change to use new GetSubjectAltNameByType() name #

Total comments: 19

Patch Set 6 : incorporate code review feedback #

Total comments: 13

Patch Set 7 : incorporate code review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+118 lines, -32 lines) Patch
M chromeos/network/client_cert_resolver.cc View 1 2 3 4 5 6 7 chunks +49 lines, -3 lines 0 comments Download
M chromeos/network/client_cert_resolver_unittest.cc View 1 2 12 chunks +59 lines, -29 lines 0 comments Download
M chromeos/network/client_cert_util.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chromeos/network/client_cert_util.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M components/onc/onc_constants.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M components/onc/onc_constants.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (7 generated)
Kevin Cernekee
4 years, 9 months ago (2016-02-27 21:59:10 UTC) #4
stevenjb
Please also find someone familiar with certificates to review this. Maybe someone on the enterprise ...
4 years, 9 months ago (2016-02-29 19:04:20 UTC) #5
Kevin Cernekee
https://codereview.chromium.org/1717123002/diff/40001/chromeos/network/client_cert_resolver.cc File chromeos/network/client_cert_resolver.cc (right): https://codereview.chromium.org/1717123002/diff/40001/chromeos/network/client_cert_resolver.cc#newcode193 chromeos/network/client_cert_resolver.cc:193: void ReplaceSAN(std::string* identity, On 2016/02/29 19:04:20, stevenjb wrote: > ...
4 years, 9 months ago (2016-02-29 21:50:30 UTC) #7
stevenjb
https://codereview.chromium.org/1717123002/diff/40001/chromeos/network/client_cert_resolver.cc File chromeos/network/client_cert_resolver.cc (right): https://codereview.chromium.org/1717123002/diff/40001/chromeos/network/client_cert_resolver.cc#newcode199 chromeos/network/client_cert_resolver.cc:199: GetSubjectAltName(cert.os_cert_handle(), type, &names); On 2016/02/29 21:50:29, Kevin Cernekee wrote: ...
4 years, 9 months ago (2016-02-29 22:06:21 UTC) #8
Kevin Cernekee
https://codereview.chromium.org/1717123002/diff/40001/chromeos/network/client_cert_resolver.cc File chromeos/network/client_cert_resolver.cc (right): https://codereview.chromium.org/1717123002/diff/40001/chromeos/network/client_cert_resolver.cc#newcode199 chromeos/network/client_cert_resolver.cc:199: GetSubjectAltName(cert.os_cert_handle(), type, &names); On 2016/02/29 22:06:21, stevenjb wrote: > ...
4 years, 9 months ago (2016-02-29 22:53:49 UTC) #9
stevenjb
lgtm
4 years, 9 months ago (2016-02-29 23:00:28 UTC) #10
Ryan Sleevi
https://codereview.chromium.org/1717123002/diff/80001/chromeos/network/client_cert_resolver.cc File chromeos/network/client_cert_resolver.cc (right): https://codereview.chromium.org/1717123002/diff/80001/chromeos/network/client_cert_resolver.cc#newcode58 chromeos/network/client_cert_resolver.cc:58: // substitution. What does this mean? https://codereview.chromium.org/1717123002/diff/80001/chromeos/network/client_cert_resolver.cc#newcode192 chromeos/network/client_cert_resolver.cc:192: // ...
4 years, 9 months ago (2016-02-29 23:51:52 UTC) #11
Kevin Cernekee
https://codereview.chromium.org/1717123002/diff/80001/chromeos/network/client_cert_resolver.cc File chromeos/network/client_cert_resolver.cc (right): https://codereview.chromium.org/1717123002/diff/80001/chromeos/network/client_cert_resolver.cc#newcode58 chromeos/network/client_cert_resolver.cc:58: // substitution. On 2016/02/29 23:51:51, Ryan Sleevi wrote: > ...
4 years, 9 months ago (2016-03-02 21:38:03 UTC) #12
Ryan Sleevi
I defer to stevenjb. I've tried to make some suggestions, I think there are issues ...
4 years, 9 months ago (2016-03-02 21:57:29 UTC) #13
stevenjb
Unfortunately I am not very familiar with the details of certificates, and pneubeck@ is no ...
4 years, 9 months ago (2016-03-02 22:34:59 UTC) #14
Ryan Sleevi
https://codereview.chromium.org/1717123002/diff/100001/chromeos/network/client_cert_resolver.cc File chromeos/network/client_cert_resolver.cc (right): https://codereview.chromium.org/1717123002/diff/100001/chromeos/network/client_cert_resolver.cc#newcode548 chromeos/network/client_cert_resolver.cc:548: } On 2016/03/02 22:34:59, stevenjb wrote: > On 2016/03/02 ...
4 years, 9 months ago (2016-03-02 22:46:17 UTC) #15
Kevin Cernekee
https://codereview.chromium.org/1717123002/diff/100001/chromeos/network/client_cert_resolver.cc File chromeos/network/client_cert_resolver.cc (right): https://codereview.chromium.org/1717123002/diff/100001/chromeos/network/client_cert_resolver.cc#newcode235 chromeos/network/client_cert_resolver.cc:235: (*cert_it->cert).os_cert_handle(), &names); On 2016/03/02 21:57:29, Ryan Sleevi wrote: > ...
4 years, 9 months ago (2016-03-02 22:57:43 UTC) #16
stevenjb
lgtm
4 years, 9 months ago (2016-03-03 19:19:32 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1717123002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1717123002/120001
4 years, 9 months ago (2016-03-03 19:21:26 UTC) #19
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 9 months ago (2016-03-03 19:28:40 UTC) #21
commit-bot: I haz the power
4 years, 9 months ago (2016-03-03 19:45:09 UTC) #23
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/969c512689fa55c1b3a4be0d82c2f2024bb0699a
Cr-Commit-Position: refs/heads/master@{#379056}

Powered by Google App Engine
This is Rietveld 408576698