https://bugs.winehq.org/show_bug.cgi?id=50721
--- Comment #3 from Paulo Matias thotypous@gmail.com --- (In reply to Hans Leidekker from comment #1)
This is because we would need to use Win32 APIs to verify the certificate. That way we have access to the right CA certificate store and apply the right policy.
Thank you for the explanation. So a proper fix would be even more complicated than I was anticipating.
That's fine. You may also want to add test case.
OK. I have just attached the patch to fix the bug itself. I will work on a test case and attach it as a separate patch.