mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
mbedtls: client cert workaround
https://github.com/warmcat/libwebsockets/pull/1075#issuecomment-340730880
This commit is contained in:
parent
a552de400a
commit
121d5d5940
2 changed files with 4 additions and 1 deletions
|
@ -172,7 +172,8 @@ lws_tls_client_create_vhost_context(struct lws_vhost *vh,
|
|||
return 1;
|
||||
}
|
||||
|
||||
SSL_CTX_add_client_CA(vh->ssl_client_ctx, vh->x509_client_CA);
|
||||
// SSL_CTX_add_client_CA(vh->ssl_client_ctx, vh->x509_client_CA);
|
||||
SSL_CTX_add_client_CA(vh->ssl_ctx, vh->x509_client_CA);
|
||||
|
||||
lwsl_notice("client loaded CA for verification %s\n", ca_filepath);
|
||||
|
||||
|
|
|
@ -25,6 +25,8 @@ int
|
|||
lws_tls_server_client_cert_verify_config(struct lws_context_creation_info *info,
|
||||
struct lws_vhost *vh)
|
||||
{
|
||||
SSL_CTX_set_verify(vh->ssl_ctx, SSL_VERIFY_PEER, NULL);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue