-
Notifications
You must be signed in to change notification settings - Fork 446
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TCP connect completion failure' error while connecting to aws broker using SSL certificates #268
Comments
I had a similar problem. Error TCP Connection -1. However, I modified version TLS / SSL and configured in / etc / hosts the commom name from server at client and at server, I configure common name from client. |
Might be similar to the issue I am having on arm: #318 |
One problem with AWS, in particular (and several of the other public IoT services), is that the initial SSL/TLS connection is established without an issue, but then the broker - which is not fully MQTT compliant - doesn't like something in the MQTT Connect packet and simply drops the connection without explanation. Unfortunately, the underlying networking is completely managed by the C library over which I have little control. But I did request that they consider more detailed connection error messages to distinguish between these two totally different errors: For now, turn on the C library logging:
If it says that the SSL connection is properly established, but then the connection is dropped soon after that (when the CONNECT packet is sent), it means that there's something in your |
But, basically, if you use their online or CLI tools to generate certificates, this setup should work for the SSL options:
|
Hello, i'm compiling paho cpp sample ssl_publish.cpp to publish data to was it core broker,
I'm providing the rootca certificate as the trust store and the client private key as the key store, but I'm getting a tcp error. I've changed the trust store with the client certificate but it's not working also.
does anyone tried it and has the solution
The text was updated successfully, but these errors were encountered: