[remoting host] Improve certificate selection during third-party-auth token verification. |
||
Issue descriptionWe have some evidence (internal bug b/31399440) that the Chromoting host selects an incorrect certificate during SSL handshake when attempting third-party token verification. The Chromoting code for choosing a certificate is here: https://cs.chromium.org/chromium/src/remoting/host/token_validator_base.cc?q=OnCertificatesSelected&l=169 It looks like we are given a list of candidate certs and we simply go through the list looking for the first one that matches the cert-issuer defined by system policy settings. If policy defines RemoteAccessHostTokenValidationCertificateIssuer to be "*", then we always pick the first cert in the list. Perhaps we can be more intelligent in selecting the cert - for example, select the most-recently-issued cert that matches the criteria?
,
Sep 30 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/e4807badb80cef2a24ffd3fdb3b8c28859c65a5c commit e4807badb80cef2a24ffd3fdb3b8c28859c65a5c Author: yuweih <yuweih@chromium.org> Date: Fri Sep 30 00:56:54 2016 [Remoting Host] Select Latest Valid Cert Currently TokenValidatorBase will always select the first certificate for third-party authentication that matches the issuer but sometimes an incorrect certificate will be selected. This CL tries to improve this by: * Not selecting certificate that is obviously expired (now > valid_expiry). * Selecting the certificate with latest |valid_start| time. * Selecting the certifiacte with latest |valid_expiry| time when |valid_start| is the same. BUG= 646944 Review-Url: https://codereview.chromium.org/2369193002 Cr-Commit-Position: refs/heads/master@{#422001} [modify] https://crrev.com/e4807badb80cef2a24ffd3fdb3b8c28859c65a5c/remoting/host/BUILD.gn [modify] https://crrev.com/e4807badb80cef2a24ffd3fdb3b8c28859c65a5c/remoting/host/token_validator_base.cc [modify] https://crrev.com/e4807badb80cef2a24ffd3fdb3b8c28859c65a5c/remoting/host/token_validator_base.h [add] https://crrev.com/e4807badb80cef2a24ffd3fdb3b8c28859c65a5c/remoting/host/token_validator_base_unittest.cc
,
Sep 30 2016
|
||
►
Sign in to add a comment |
||
Comment 1 by jamiewa...@chromium.org
, Sep 15 2016Owner: yuweih@chromium.org
Status: Assigned (was: Untriaged)