Skip to content

Get the SKID of client certificate when establishing the connection on http server side #3453

@gennadiyvt

Description

@gennadiyvt

Dear libwebsockets team,

We are trying to use libwebsockets http server built with the mbedtls on a small embedded platform. One of our requirements is to have a list of trusted SKI on http server side and make sure that client connected matches one of that list items. The issue is that when in lws_context_creation_info->options the LWS_SERVER_OPTION_REQUIRE_VALID_OPENSSL_CLIENT_CERT is present, mbedtls handshake fails (looks like it requires a valid CA in this case), but if LWS_SERVER_OPTION_REQUIRE_VALID_OPENSSL_CLIENT_CERT is off — then we cannot fetch any peer certificate related info. With OpenSSL it is possible to check the SKID without CA, that is what we really appreciate if possible somehow with mbedtls-based libwebsockets.

Should we try some more specific libwebsockets or mbedtls options to get the SKID check working without providing a CA or is that just not possible?

Thank you in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions