HomeiOS Developmentandroid - Belief user-added CA certificates in Flutter software

android – Belief user-added CA certificates in Flutter software


I am writing flutter app that can retrieve knowledge through https from an area server. We have now our personal certification authority and have put in the certificates on the server. We additionally put in the intermediate certificates on the Android system so it may be trusted. When connecting to our server in chrome SSL works wonderful and the browser trusts our CA.
However after I strive to hook up with it within the app, I get this error:

E/flutter (15518): [ERROR:flutter/lib/ui/ui_dart_state.cc(198)] Unhandled Exception: HandshakeException: Handshake error in shopper (OS Error: E/flutter (15518): CERTIFICATE_VERIFY_FAILED: self signed certificates in certificates chain(handshake.cc:393)) E/flutter (15518): #0 _SecureFilterImpl._handshake (dart:io-patch/secure_socket_patch.dart:99:46) E/flutter (15518): #1 _SecureFilterImpl.handshake (dart:io-patch/secure_socket_patch.dart:142:25) E/flutter (15518): #2 _RawSecureSocket._secureHandshake (dart:io/secure_socket.dart:911:54) E/flutter (15518): #3 _RawSecureSocket._tryFilter (dart:io/secure_socket.dart:1040:19) E/flutter (15518): <asynchronous suspension> E/flutter (15518):

I’ve adopted this information and configured the Android manifest like this and created a network_security_config.xml file
AndroidManifest.xml
network_security_config.xml
It may be reproduced in a brand new Flutter mission.
Has anybody encountered an identical drawback? We checked our certificates and they’re okay. It additionally works for Chrome on the identical system. I checked the Chrome app manifest and we’ve the identical community safety configuration

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments