Http Error “CERTIFICATE_VERIFY_FAILED: not able to get native issuer certificates”

Hi all,

I’m writing a Flutter App and made my backend api in ASP .NET Core 6. Lately I host it by the use of localhost. I’m somewhat bit misplaced at the present time as a result of I all the time get this mistake.

This mistake occurs once I wish to debug on Android Emulator.

[My error](

Now I googled somewhat and located a Stackoverflow web page the place they are saying I will allow a badCertificateCallback globally which I’m simplest allowed to make use of in developement. However it’s extra roughly a workaround I feel. There may be a solution so as to add a certificates to the property folder of the foundation undertaking folder. I did it and likewise did the whole lot step-by-step however I nonetheless get the mistake that it can’t get the certificates.


[Stackoverflow solution](

**My Challenge:**

This serve as fails on “go back look forward to http.get …”

static Long run<http.Reaction> userLogin(String mail, String password) async{
ultimate params = {
ultimate header = {
HttpHeaders.contentTypeHeader: ‘software/json’,
var uri = Uri.https(‘′,’api/authentication/login’, params);
go back look forward to http.get(uri, headers: header).timeout(const Period(seconds: 10));


[the certificate I added](


[the added asset directory in the pubspec.yaml](

View Reddit by means of MettwurstpowerView Supply

You may also like...

WP2Social Auto Publish Powered By :