I am currently building Flutter applications with Dart and getting the following error:
client exception - HandshakeException: Handshake error in client (OS Error: CERTIFICATE_VERIFY_FAILED: certificate has expired(handshake.cc:393)
It is no problem on the Windows desktop app, but not on Android device.
Here is additional information:
Device: Galaxy Tab S2
OS: Android (7.0)
Dependency used in the Flutter project: mqtt_client: ^9.7.2
Hi @sback2063 ,
Yes, you can use the same file. We keep the certificate file pinned in the Frequently Asked Questions topic here: Frequently Asked Questions.
welcome to the HiveMQ Community! We’re excited to have you join us, especially because of your interest in MQTT and the HiveMQ broker. It’s great to see new users like you!
You asked “How to use this file in our app?”, however, did not specify what app it actually is. Can you elaborate on that?
Hello sir, I am building a Flutter app, and I got this error in my console: Exception caught by image resource service
Handshake error in client (OS Error: CERTIFICATE_VERIFY_FAILED: certificate has expired(handshake.cc:393))
So, how to resolve this error?
Thanks for your reply! As I understand it so far, you are developing a Flutter app, which uses some sort of MQTT library to communicate to MQTT brokers.
Perhaps you could share a link to your app’s code and describe, how you run it, so I could reproduce the error that you are seeing. That could help investigate the issue further.
In case you are following instructions provided by HiveMQ, it would help, if you share the link to those instructions and indicate at which step it fails. I am sure we could get to the root of the issue together.