Skip to content

How to select server certificate dynamically based on SNI in ClientHello? #156

@markandpathak

Description

@markandpathak

I would like to develop a TCP Server in which, the TLS Server certificate are selected based on the SNI in ClientHello. Think of a TCP Proxy with multiple domains hosted on single server. I could not find anything in documentation. Is this possible with tokio_native_tls in async manner? if not, any other way I can achieve this in tokio? A very minimal example is very much appreciated on how this can be achieved.

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