pd4d10 / git-touch

An open-source app for GitHub, GitLab, Bitbucket, Gitea, and Gitee(码云), built with Flutter
Apache License 2.0
1.56k stars 134 forks source link

CERTIFICATE_VERIFY_FAILED #102

Open mathmaniac43 opened 3 years ago

mathmaniac43 commented 3 years ago

Hello,

I am trying to set up this app on my Motorola Android 9.0 phone. I want to connect it to my locally-hosted GiTea instance, which I have generated my own SSL certificates up to use HTTPS with. I have installed the root certificate onto my phone, and it works for my web browser and other services.

When I plug in the GiTea access token, I get the following error:

Something bad happens: HandshakeException: Handshake error in client
(OS Error:

CERTIFICATE_VERIFY_FAILED: unable to get local issuer certificate(handshake.cc:354))

Is something preventing the app from using the system's user-installed SSL certificates?

Thanks!

pd4d10 commented 3 years ago

Hi, @mathmaniac43 , thanks for the report!

Does you self-hosted site work fine in the browser?

mathmaniac43 commented 3 years ago

Yes it does. After I installed the public root cert I generated on my phone, the browsers (Firefox and Google Chrome) are happy to open the site.

pd4d10 commented 3 years ago

OK. It looks related to Dart/Flutter framework, not the app itself.

Found some similar issues at Flutter repo: https://github.com/flutter/flutter/issues/50699 https://github.com/flutter/flutter/issues/23045

mathmaniac43 commented 3 years ago

I see, thank you for finding and sharing that!

ghost commented 3 years ago

Potential fix flutter/flutter#50699#issuecomment-653855688

HarrPerson commented 3 years ago

I have the same problem with GitTouch and gogs. Self signed root CA is installed as user certificate. Chrome works fine.