Skip to content

Conversation

javiercn
Copy link
Member

@javiercn javiercn commented Sep 21, 2018

Adds a class and new methods to consume diagnostics from the tool and capture more detailed information on errors.

  • dotnet-dev certs and the xplat library will be updated to consume the new methods.
  • After that, the methods will be renamed to the old names and everything will get updated again.
  • Cleans up dead code

var matching = store.Certificates
.OfType<X509Certificate2>()
.Single(c => c.SerialNumber == certificate.SerialNumber);
.SingleOrDefault(c => c.SerialNumber == certificate.SerialNumber);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was a bug that surfaced when the certificate was not trusted.

@javiercn javiercn requested a review from pranavkm September 21, 2018 19:28

try
{
store.Add(publicCertificate);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this need logging?

bool isValid,
bool requireExportable = true)
bool requireExportable = true,
DiagnosticInformation diagnostics = null)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Home brew logging

@javiercn javiercn force-pushed the javiercn/diagnostics branch from e635587 to e2dfaeb Compare October 5, 2018 21:29
@javiercn javiercn merged commit 7d8418b into release/2.2 Oct 9, 2018
@natemcmaster natemcmaster deleted the javiercn/diagnostics branch October 25, 2018 00:26
@ghost ghost locked as resolved and limited conversation to collaborators May 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants