Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove certificate matching by name #1178

Merged
merged 1 commit into from
May 19, 2016

Conversation

roncain
Copy link
Contributor

@roncain roncain commented May 18, 2016

The ConditionalFact detector for certificates was using a fallback
strategy to locate certificates based on IssuedBy and SubjectName
when it could not locate by thumbprint. But this allowed matches
on left-over certificates that would not work.

With this change, we match only on thumbprint or report that there
is no certificate installed and let the ConditionalFact skip the
certificate tests.

Fixes #1172

The ConditionalFact detector for certificates was using a fallback
strategy to locate certificates based on IssuedBy and SubjectName
when it could not locate by thumbprint.  But this allowed matches
on left-over certificates that would not work.

With this change, we match only on thumbprint or report that there
is no certificate installed and let the ConditionalFact skip the
certificate tests.

Fixes dotnet#1172
@roncain
Copy link
Contributor Author

roncain commented May 18, 2016

@dotnet-bot test all outerloop please

@roncain
Copy link
Contributor Author

roncain commented May 18, 2016

Reviewers: the OuterLoop failures are the known NetHttps test failures we consciously chose to allow for a short time. Console output reveals they did, in fact, succeed in installing the root and client certs.

@iamjasonp
Copy link
Member

Wondering if we're actually better off trying to ensure that the leftovers are cleaned up properly... I'm trying to recall why we chose to match by name previously instead of matching by thumbprint (and i think it was for historical reasons where we didn't know in advance what the thumbprint for a cert was going to be)

Changes LGTM

@roncain
Copy link
Contributor Author

roncain commented May 19, 2016

*nix OuterLoop failures are the known NetHttps tests we are consciously allowing to fail in CI for now.

@roncain roncain merged commit fdd836e into dotnet:master May 19, 2016
@roncain roncain deleted the detector-name-match branch May 19, 2016 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants