Closed DreamScy closed 7 years ago
This simply means that your server/broker is not expecting TLS/SSL on port 61614. Please check your server config and logs
@ckrey Thank you for your reply,Yet,Android can connect to the server use TLS/SSL,but ios cannot, The certificate of ios is from BKS types of certificates are transformed, I want to use no certificate to access the server (MQTTSSLPinningModeNone), Is there a problem with the code above?
@ckrey I may describe the less clear, there is no time to use TLS encryption can be a normal connection, but the use of the time, with the encrypted demo connection is not on, so far, Android can connect, IOS has been returned to 9806
@DreamScy I have also the same problem,so, can you tell me how to fix this bug?
Android implentation does not check domain name in TLS encryption. So the error is there. You have to have a certificate on the broker that is valid for the hostname you are using.
Do not use ssl to connect the server (is not encrypted)is ok! the code is following:
/****/
/****/
but if I use custom certificates ,
/****/
/****/
or useing the following code
/****/
/****/
There will be an error in the
CFNetwork SSLHandshake failed (-9806) mqttTransport didFailWithError Error Domain=NSOSStatusErrorDomain Code=-9806 "(null)"
I want to konw if I use the MQTTSSLPinningModeNone is right or wrong