warmcat / libwebsockets

canonical libwebsockets.org networking library

Home Page:https://libwebsockets.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does libwebsocket has API which will directly access certificate store.

sush126 opened this issue · comments

Hi @lws-team , "I want to access the Windows Certificate Store to find a certificate. Is there an API in libwebsockets that can do this?"

If you use OpenSSL, and set -DLWS_SSL_CLIENT_USE_OS_CA_CERTS=1 then lws will import CA certs from the OS trust store.

If that's not it, you can at least take the code from lib/plat/windows/windows-sockets.c lws_plat_vhost_tls_client_ctx_init()