clavis trust
Trust a server's self-signed certificate on this computer
clavis trust <command>Decide which self-signed server certificates this computer accepts. Certificates from a public authority (Let's Encrypt, your company CA in the system store) need nothing here.
The first time the CLI meets a self-signed server, it shows the certificate's SHA-256 fingerprint and asks you to trust it, like SSH does with a new host. The answer is pinned to the server's public key, so it survives the yearly certificate renewal and a change of the server's address. If the key ever changes, the CLI stops with a warning and asks you to type trust to accept the new one.
Compare the fingerprint with the one the server prints (docker exec clavis clavis admin tls-info) or with the one an admin sent you.
Commands
clavis trust addCheck a server's certificate and trust itclavis trust lsList servers trusted on this computerclavis trust rmStop trusting a server's certificateExamples
Trust a LAN server
clavis trust add https://192.168.1.20Trust without a prompt (scripts, onboarding docs)
clavis trust add https://192.168.1.20 --fingerprint 9E:1C:…:F9clavis trust lsDetails
Other ways to trust a server, for automation:
CLAVIS_SERVER_FINGERPRINT: the expected SHA-256 of the certificate or its public key. Nothing is saved.CLAVIS_CA_CERT: a PEM file (or a list of them) with your own CA, added to the system roots.CLAVIS_TRUST_FILE: where pins are stored, instead oftrusted-servers.jsonin the config folder.
To avoid the question entirely, give the server a real certificate: with a domain you control, set CLAVIS_ACME_DNS and the server gets one from Let's Encrypt even on a private network.
Global flags
These work with every command.
--debug- enable debug logging
--env string- environment slug
--json- output machine-readable JSON
--org string- organization slug
--overlay string- tenant/region overlay slug
--path string- folder path (default /)
--project string- project slug
--server string- Clavis server URL (default: from .clavis.yaml or saved login)
-h, --help- help for any command