Known Hosts (TOFU)¶
This guide explains how Astronomo manages server certificate trust using TOFU (Trust On First Use).
Understanding TOFU¶
Gemini uses TLS encryption for all connections. Unlike the web's certificate authority (CA) system, Gemini typically uses Trust On First Use (TOFU):
- The first time you visit a server, its certificate is automatically trusted
- On subsequent visits, Astronomo verifies the certificate matches what was stored
- If a certificate changes unexpectedly, you're warned of a potential security issue
Certificate Change Warnings¶
When a server's certificate changes, Astronomo shows a warning modal with:
- Old fingerprint — The previously trusted certificate
- New fingerprint — The certificate the server is now presenting
- Trust timestamps — When the original certificate was first and last seen
Response Options¶
| Option | Action |
|---|---|
| Accept | Trust the new certificate and continue |
| Reject | Refuse the connection (stay safe) |
| View Details | See full fingerprint comparison |
Security Consideration
A certificate change could indicate:
- The server legitimately renewed its certificate
- A man-in-the-middle attack
- Server compromise
If unexpected, verify with the server operator before accepting.
Managing Known Hosts¶
Opening Known Hosts Settings¶
- Press Ctrl+, to open Settings
- Click the Known Hosts tab
Features¶
The Known Hosts tab displays all trusted server certificates with:
- Search filtering — Type in the search box to filter hosts by hostname
- Pagination — Navigate through pages of 10 hosts using Prev/Next buttons
- Host details — Hostname, port, fingerprint, first seen, and last seen dates
- Revoke button — Remove trust for individual hosts
Searching Hosts¶
- Type in the "Filter by hostname..." search box
- Results filter in real-time as you type
- Search is case-insensitive
- Pagination resets to page 1 when searching
Revoking Trust¶
To remove a server from your trusted hosts:
- Find the host in the list (use search if needed)
- Click the Revoke button
- The host is immediately removed
Note
After revoking trust, the next visit to that server will treat it as a first-time connection, and the certificate will be trusted again automatically.
Storage Location¶
Known hosts are stored by Nauyaca in an SQLite database:
When to Revoke Trust¶
Consider revoking trust when:
- You know a server has legitimately changed certificates and want a clean slate
- You're troubleshooting connection issues
- You want to verify a server's current certificate
Troubleshooting¶
Too Many Hosts¶
If the Known Hosts list is slow to load:
- Use the search box to filter to specific hosts
- Pagination limits display to 10 hosts at a time
Certificate Keeps Changing¶
If a server's certificate changes frequently:
- Check if the server uses load balancing with different certificates
- Contact the server operator
- Consider if the site is safe to use
Cannot Connect After Revoking¶
After revoking trust:
- Try connecting again — the new certificate should be trusted automatically
- If prompted about a certificate change, verify the fingerprint is expected
- Check your network connection