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
SSL: handshake failure (not support TLS1.2?) #344
Comments
test3.exe output on my PC: https://pastebin.com/HvmNd1Wm |
As MQTT.fx is a Java client, the format of the truststore and keystore files is different from that used by OpenSSL. The test3.exe output indicates a likely problem with one of the files. You could try using the ones in this project to see what errors, if any, they give you. |
Thanks a lot |
I create correct keys, thanks. But library doesnt' work :( First connection success by mosquitto_sub: Second failed by C code:
|
I understand, that I set up TLS1.2 on the broker. Now I testing with TLS1 I change setup nonbloking socket after connect to socket like in Mosquitto library. Othewise I got 10035 error. Now I debugging communicating |
I connect successfully with setup nonbloking after connect function.. I can't understand, maybe Socket_setnonblocking doesn't work for Windows10x64. I try to find a reason on Monday. Important note: I use full ways for certificates with \\ (double) in Windows. |
Hello dontsovcmc , I have almost similar problem, i cannot connect with SSL for publish the message. Could you please inform how did you configure or what is the program you have written so that it is working. |
here is solution: #367 |
For TLS 1.2 - it isn't a SSL. TLS support here: #333 |
thank you.. i am using vxworks. I have tried your provided solution. now i have a error on "SSLSocket_createContext". it is showing that "SSL_CTX_use_certificate_chain_file" has -1 error. |
Use google! |
thank you.. |
I start to work with SSL for the first time and got error in MQTTClient_connect.
Environment:
Windows 10, x64, Visual Studio 12.0, openssl-1.0.2k.gz
Library compile script:
I have CA file (ca.crt), Client Certificate File (client.crt), Client Key File (client.key) in PEM format.
I run broker with cafile (ca.crt), certfile (server.crt), keyfile (server.key)
I connect with MQTT.FX correctly using certificates, login, password.
When I connect by my application I see:
What I do:
The text was updated successfully, but these errors were encountered: