You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1.5 KiB


Minimal Gemini client capable of (self-signed) certificate validation using the additional network perspective of a Tor exit node.

When the client encounters a new TLS certificate for a host, it connects to that same host via Tor, in order to obtain its certificate from a second vantage point. The user is notified on certificate mismatch or connection failure.

Any MITM attack (whether enabled by BGP hijack, DNS compromise or whatever else) will trigger an alert unless it affects both the user and the exit node at the same time. As such, this validation method works best when the exit node and the user are far apart and are not using the same DNS resolver.

Users may configure Tor to select specific exit nodes by setting the ExitNodes and StrictNodes options in their torrc file. The ExitNodes option accepts countries, IP address ranges and node fingerprints. For example, this is how to only select exits located in France:

ExitNodes {fr}
StrictNodes 1

False alarms can be triggered by attacks on the exit node's end. And, obviously, validation does not work for servers which block Tor.

Validated certificates are kept in memory for the duration of the browsing session. Tor is assumed to be listening on localhost, port 9050.

This is a fork of Solderpunk's minimal Gemini client written in Python.