Trust user-added CA certificates in Flutter application #140737
Labels
in triage
Presently being triaged by the triage team
waiting for customer response
The Flutter team cannot make further progress on this issue until the original reporter responds
I'm writing flutter app that will retrieve data via https from a local server. We have our own certification authority and have installed the certificate on the server. We also installed the intermediate certificate on the Android device so it can be trusted. When connecting to our server in chrome SSL works fine and the browser trusts our CA. But when I try to connect to it in the app, I get this error:
I've followed this guide and configured the Android manifest like this and created a network_security_config.xml file
Android Manifest
Network Security Config
It can be reproduced in a new Flutter project. Has anyone encountered a similar problem? We checked our certificates and they are ok. It also works for Chrome on the same device. I checked the Chrome app manifest and we have the same network security configuration. We also cannot addour certificates inside the application because there may be an unlimited number of other CAs in production that we want to trust. We want to trust all certificates added by the user
The text was updated successfully, but these errors were encountered: