LwsWebSocket: Add call to fetch cert store error code from OpenSSL upon preverify failure

Hi, I’ve opened a PR on Github to add a call to X509_STORE_CTX_get_error and debug log the output when the preverify check fails in openssl

This can help with debugging. Thanks for your consideration.

https://github.com/EpicGames/UnrealEngine/pull/13812

Steps to Reproduce
n/a

Hi,

Thank you for the pull request! I can confirm it has been received in our internal tracker, and it will be routed to the appropriate subject matter expert for review as soon as possible.

I’ve included a link to this thread on our internal tracker as well, in case the assigned SME wants to reach out here with any follow-up questions.

Thanks,

Alex