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
How can I solve this problem?
You can download the root certificate here .
This will create a file called “isrgrootx1.pem”, which you can use as “Server Certiciate”.
Hi @Daria_H ,
Thank you for the reply.
I tried and it is working well! Thank you!
If I upgrade to the plan later, are we still using the same pem file?
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.
Glad that it helped
Dasha from HiveMQ