Closed pratamarama closed 3 months ago
From the AWS docs -
*Using MQTT with client certificate authentication on port 443 requires the use of the ALPN TLS extension.
So you need to use this method on your security context .
Consult the AWS documentation on the page linked above to see what to put in this.
I set port to 443 and set the ALPN protocol based on this:
_client = MqttServerClient.withPort(Constant.customerSpesificEndpoint, clientIdentifier, 443);
context.setAlpnProtocols(<String>['x-amzn-mqtt-ca'], false);
But the result is just the same..
Ok your only recourse then is to examine your AWS MQTT broker logs to find out why it's refusing the connection, the client can't help you any more here.
@shamblett Thanks for the help and suggestion. It fixes by attach the policy to the certificate on AWS console.
Hello, i want to ask why i cant connect to mqtt and always get exception, whereas i already put certificates that generated from the AWS console. Thank you for any help and suggestion
This is the log: