According to this document, using MQTT on port 443 in AWS IoT requires configuring the ALPN extension with the x-amzn-mqtt-ca
protocol.
I use the AWS IoT C++ SDK with OpenSSL. When creating the network::OpenSSLConnection
object, I configured the endpoint_port
parameter to 443 and enable_alpn
to true. Where can I set the protocol to x-amzn-mqtt-ca
? The connection seems to work that way, and TCPView shows that it actually uses the HTTPS port.