-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
CERTIFICATE_VERIFY_FAILED: unable to get local issuer certificate(handshake.cc:354)) #956
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is still an issue, please make sure it is up to date and if so, add a comment that this is still an issue to keep it open. Thank you for your contributions. |
This problem still actual |
Me too |
For me the problem solved on the server side (as it should be) with no change in the code. Everything is valid now. The configuration is Centos/Apache/LetEncrypt/Python3.8/Django3.1.5/Mod_wsgi/ but I guess that the solution is valid for most installations of Apache/LetEncrypt The steps to resolve are Locate the line "SSLCACertificateFile" on the Virtual Host you wish to config. For example: Download https://letsencrypt.org/certs/lets-encrypt-r3-cross-signed.txt At the end of /etc/httpd/conf/ssl.crt/my_ca.crt (after the -----END CERTIFICATE-----) start a new line and paste from lets-encrypt-r3-cross-signed.txt everything bellow -----BEGIN CERTIFICATE----- (including -----BEGIN CERTIFICATE-----) Also you can check the validity of your cert in https://www.digicert.com/help/. |
I found the cause for this (at least for my situation) whenever I change device Date and Time to more than 5 months ahead of the actual Date and Time this happens, seems weird. |
Not weird. If you change date, ssl fails to evaluate. It suppose counterfeit |
class MyHttpoverrides extends HttpOverrides { void main() async { HttpOverrides.global = MyHttpoverrides(); runApp(MyApp()); |
I got this issue while trying to post to a rest endpoint. The error occurs only when running the app on Android simulator.
Below are the error info and stacktrace:
I am using Dio v4.0.4
UPDATE: |
82): ╔╣ DioError ║ DioErrorType.DEFAULT
I/flutter ( 8182): ║ HandshakeException: Handshake error in client (OS Error:
I/flutter ( 8182): CERTIFICATE_VERIFY_FAILED: unable to get local issuer certificate(handshake.cc:354))
I/flutter ( 8182): ╚══════════════════════════════════════════════════════════════════════════════════════════
E/flutter ( 8182): [ERROR:flutter/lib/ui/ui_dart_state.cc(166)] Unhandled Exception: DioError [DioErrorType.DEFAULT]: HandshakeException: Handshake error in client (OS Error:
E/flutter ( 8182): CERTIFICATE_VERIFY_FAILED: unable to get local issuer certificate(handshake.cc:354))
E/flutter ( 8182): #0 DioMixin._request._errorInterceptorWrapper... (package:dio/src/dio.dart:870:17)
E/flutter ( 8182): #1 _rootRunUnary (dart:async/zone.dart:1198:47)
E/flutter ( 8182): #2 _CustomZone.runUnary (dart:async/zone.dart:1100:19)
E/flutter ( 8182): #3 _FutureListener.handleValue (dart:async/future_impl.dart:143:18)
E/flutter ( 8182): #4 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:696:45)
E/flutter ( 8182): #5 Future._propagateToListeners (dart:async/future_impl.dart:725:32)
E/flutter ( 8182): #6 Future._completeWithValue (dart:async/future_impl.dart:529:5)
E/flutter ( 8182): #7 Future._asyncCompleteWithValue. (dart:async/future_impl.dart:567:7)
E/flutter ( 8182): #8 _rootRun (dart:async/zone.dart:1190:13)
E/flutter ( 8182): #9 _CustomZone.run (dart:async/zone.dart:1093:19)
E/flutter ( 8182): #10 _CustomZone.runGuarded (dart:async/zone.dart:997:7)
E/flutter ( 8182): #11 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:1037:23)
E/flutter ( 8182): #12 _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
E/flutter ( 8182): #13 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
E/flutter ( 8182):
The text was updated successfully, but these errors were encountered: