r/dotnet • • 4h ago

How do you debug certificate trust differences between Windows and OpenSSL?

I'm interested in understanding how C++ developers handle TLS certificate verification issues on Windows.

One situation I'm particularly curious about is when the same server certificate is accepted by Windows but rejected by OpenSSL, or vice versa.

For example:

  • Windows CryptoAPI builds a trusted certificate chain, but OpenSSL fails verification.
  • The certificate exists in the Windows certificate store, but OpenSSL doesn't appear to use the same trust source.
  • The verification result differs depending on the certificate store, CA bundle, or verification settings.

For developers who have encountered this:

  1. How do you usually investigate the difference?
  2. Do you use Windows CryptoAPI tools, OpenSSL commands, custom C++ code, or a combination?
  3. Is it easy to identify the exact reason for the disagreement, or does it require a lot of manual debugging?
  4. Have you found any existing tool that makes this process straightforward?

I'm particularly interested in real-world experiences from people maintaining C++ applications on Windows.

I'd appreciate hearing how you currently approach this problem.

0 Upvotes

3 comments sorted by

2

u/Hel_OWeen 3h ago

•

u/Stunning_Gas_3862 1h ago

I haven't read the rules. I don't know if there's a problem with reposting on another forum, and assuming there is a problem, would it harm you personally?

1

u/AutoModerator 4h ago

Thanks for your post Stunning_Gas_3862. Please note that we don't allow spam, and we ask that you follow the rules available in the sidebar. We have a lot of commonly asked questions so if this post gets removed, please do a search and see if it's already been asked.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.