Is TLS_HOSTNAME socket option supported inside the modem firmware or bsdlib?
When I make the function call:
err = setsockopt(client_fd, SOL_TLS, TLS_HOSTNAME, host, sizeof(host));
returns with err==42.
I need to set this socket option for my application. I am using AWS API Gateway with a custom domain name and the certificate that gets served by default is the "*.execute-api.us-east-1.amazonaws.com" and not my domain certificate. Then, I believe the TLS peer verification fails due to hostname mismatch.
I am using fairly latest, SW Versions: