aws-samples / aws-iot-securetunneling-localproxy

AWS Iot Secure Tunneling local proxy reference C++ implementation
https://docs.aws.amazon.com/iot/latest/developerguide/what-is-secure-tunneling.html
Apache License 2.0
73 stars 69 forks source link

PR to set SNI during boost lib websocket next_layer() SSL handshake process happen during launch of app tunneling. #142

Closed jaiswal-sumit closed 9 months ago

jaiswal-sumit commented 10 months ago

This PR to set SNI during boost lib websocket next_layer() SSL handshake process happen during launch of app tunneling.

Motivation

Modifications

Change summary

Supplied host string From TcpAdapter which initiates async_ssl_hanshake Extend WebSocketStream async_ssl_hanshake to take host string and use that to set SNI. WebSocketSteam async_ssl_hanshake() code added with SSL_set_tlsext_host_name to set SNI with host string.

Revision diff summary

NA

Testing

Is your change tested? Yes Please list your testing steps and test results.** Login into CMVPN infra, Deploy the fixed code localproxy execuable open the tunnel. Check the connection status Connection status found connected at both sides

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

RogerZhongAWS commented 10 months ago

Hey, thanks the description of your issue and for your contribution. This looks fine to me, will merge as soon as we get a second approval on this.