Skip to content

Purpose of mbedtls_ssl_set_hostname() ? #466

Description

@bagder

This function is documented as:

Set hostname for ServerName TLS extension (client-side only) 

... which sounds like it is used for SNI (only) ?

But if that is so, how do I tell mbedtls which host name we connect to, to use when verifying the server certificate? Isn't it so that this function is used to for that purpose as well? Shouldn't that then be documented? If not, how do I set it?

If this function is used for both, how do I set only the host name to verify the cert with, without setting the SNI name to the same?

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