jotta / jotta-cli-issues

45 stars 1 forks source link

Unable to login, certificate signed by unknown authority #175

Closed BjornRuud closed 2 years ago

BjornRuud commented 2 years ago

Unable to login from a fresh install in a jail on TrueNAS 12.0-U8 (FreeBSD 12.2).

Logging in. Please wait...
ERROR  Could not login: auth.login.load-wellknown-configuration: Get "https://id.jottacloud.com/auth/realms/jottacloud/.well-known/openid-configuration": x509: certificate signed by unknown authority

This happens with both stable 0.13.56239 and unstable 0.13.56548.

BjornRuud commented 2 years ago

I found a solution. The jail is so bare bones it doesn't have the ca_root_nss package installed and hence cannot verify certificate authorities. After installing the package and restarting the jail I could log in. Maybe add this package as a requirement in the FreeBSD/TrueNAS docs?