bgregos / foreground

Simple Android personal task manager with Taskwarrior integration
Apache License 2.0
253 stars 15 forks source link

CA Certificate setting behaving incorrectly #175

Open yashton opened 10 months ago

yashton commented 10 months ago

I have a server with a certificate issued by Gandi. The certificate configured with taskd (and other services I have setup) contains the intermediate certificate in the chain.

I have taskd working with a desktop client. I generated the client CA and certificates using the taskwarrior scripts.

I tried to setup Foreground using the exact same certificates and settings as on the desktop, using the client CA and certificates generated. I get the error "trust anchor for certification path not found".

As soon as I set the "CA certificate" in Foreground to the Gandi intermediate CA certificate it works.

My assumption was that the CA certificate was supposed to be the generated one for taskd clients, just like as configured in taskrc. If that is the case something is wrong with handling the client certificates.

If the CA certificate is instead supposed to be for verifying self signed certificates, Foreground is not respecting intermediate certificates.