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

No way to build an X509Chain with CERT_CHAIN_DISABLE_AUTH_ROOT_AUTO_UPDATE #14917

Closed
TimLovellSmith opened this issue Jul 24, 2015 · 1 comment
Milestone

Comments

@TimLovellSmith
Copy link
Contributor

I found a fix for a bug I'm encountering in a locked down network environment might be to pass the CERT_CHAIN_DISABLE_AUTH_ROOT_AUTO_UPDATE flag to CertGetCertificateChain unmanaged API which is part of X509Chain.Build()'s implementation of building the certificate chain.

Perhaps unfortunately, what the internal BuildChain wrapper function does is construct its flags for passing to CertGetCertificateChain by calling X509Utils.MapRevocationFlags(revocationMode, revocationFlag);
which will never set the flag to disable auth root auto update.

@TimLovellSmith
Copy link
Contributor Author

I say perhaps because I feel it's still a weak argument - there is a viable alternative which is completely disable root authority auto updates on the machine by register policy. Maybe that's better since they're likely to fail for all the other processes as well, not just me.

@msftgits msftgits transferred this issue from dotnet/corefx Jan 31, 2020
@msftgits msftgits added this to the 1.0.0-rtm milestone Jan 31, 2020
@dotnet dotnet locked as resolved and limited conversation to collaborators Jan 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants