Skip to content

Let the WiFiClientSecure set an hostname different from the ip address #7459

Closed
@lu-zero

Description

@lu-zero

Related area

WiFiClientSecure

Hardware specification

Any

Is your feature request related to a problem?

The function

int start_ssl_client(sslclient_context *ssl_client, const char *host, uint32_t port, int timeout, const char *rootCABuff, bool useRootCABundle, const char *cli_cert, const char *cli_key, const char *pskIdent, const char *psKey, bool insecure, const char **alpn_protos

uses host to resolve the ip and use the it as expected CN. In some cases the CN information is provided by other means

Describe the solution you'd like

Provide a mean to set the CN when it is different.

Describe alternatives you've considered

No response

Additional context

#7350 is tangentially related.

I have checked existing list of Feature requests and the Contribution Guide

  • I confirm I have checked existing list of Feature requests and Contribution Guide.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions