dreautall / waterfly-iii

Unofficial Android App for Firefly III, a free and open source personal finance manager.
MIT License
366 stars 30 forks source link

Invalid SSL certificate #307

Closed ozymandias1688 closed 9 months ago

ozymandias1688 commented 9 months ago

Hi,

I have a firefly instance running on an RPI in my home network.I created a self signed CA-certificate for SSL (along this guide https://pimylifeup.com/raspberry-pi-firefly3/). I can use firefly without problems in my browser, but the app asks for a custom certificate. Installing the certificate in Android does not do the trick. Converting the CA from .crt to .pem and pasting the content also does not work.

What kind of certificate does the app expect?

Thanks.

dreautall commented 9 months ago

You need to paste the client certificate in the app, not the CA certificate. Does that work?

There is #77 to respect the Android installed certificates, however this is still not properly supported by Flutter currently, and I need to wait for that 😞

ozymandias1688 commented 9 months ago

Thanks a lot for answering! Sorry, but this might be dumb, but from where do I get the client certificate?

dreautall commented 9 months ago

Sorry, bad choice of words on my side. It's the server certificate, not client certificate. I just got confused with you saying "CA Certificate".

Looking through the guide you linked, you don't actually generate a CA certificate, just the server certificate. Pasting this into the box should work - you don't need to convert it though. Just paste the contents of the .crt file you generate in step 35 (/etc/ssl/certs/nginx-selfsigned.crt), it begins with -----BEGIN CERTIFICATE----- and ends with -----END CERTIFICATE-----.

ozymandias1688 commented 9 months ago

Awesome, it works now! I got it all wrong, thanks for the help!