Jump to: navigation, search

Anondate

Introduction[edit]
Consensus Related Options[edit]
  • --verified-only
  • --prefer-verified
  • --unverified-only
Special Exit Codes[edit]
  • exit 3: $TOR_LOG not readable.
  • exit 4: $consensus not readable.
Simple Status Checking[edit]
/usr/lib/anon-shared-helper-scripts/anondate --has-consensus[edit]

Useful for checking if asking for any #Date Ranges Output is worthwhile.

  • yes:
    • exit 0
  • no:
    • exit 1


Can be replaced by Tor ControlPort / python-stem?

  • verified-only: Yes. (consensus/valid-after)
  • unverified: No.
/usr/lib/anon-shared-helper-scripts/anondate --current-time-in-valid-range[edit]

Useful for a sanity test before setting the time for the first time and before setting the time to a newly fetched timestamp.

  • yes:
    • exit 0
  • no:
    • exit 1


Can be replaced by Tor ControlPort / python-stem?

Date Ranges Output[edit]
/usr/lib/anon-shared-helper-scripts/anondate --show-valid-after[edit]
  • yes:
    • output: 2015-08-15 22:00:00
    • exit 0
  • no:
    • exit 1


Can be replaced by Tor ControlPort / python-stem?

/usr/lib/anon-shared-helper-scripts/anondate --show-valid-until[edit]
  • yes:
    • output: 2015-08-16 01:00:00
    • exit 0
  • no:
    • exit 1


Can be replaced by Tor ControlPort / python-stem?

/usr/lib/anon-shared-helper-scripts/anondate --show-middle-range[edit]
  • yes:
    • output: 2015-08-15 23:30:00
    • exit 0
  • no:
    • exit 1


(A scripted calculation of the above.)

Certificate Validity[edit]
/usr/lib/anon-shared-helper-scripts/anondate --tor-cert-lifetime-invalid[edit]

When this exits 0, this is actually a bad sign. Example Tor log:

Sep 03 10:32:59.000 [warn] Certificate already expired. Either their clock is set wrong, or your clock is wrong.
Sep 03 10:32:59.000 [warn] (certificate lifetime runs from Aug 16 00:00:00 2014 GMT through Jul 29 23:59:59 2015 GMT. Your time is Sep 03 10:32:59 2015 UTC.)

When clock is several months or years fast or slow, Tor cannot even download Tor consensus. (In this case, Tails is probably setting time from unverified(?) consensus and restarts Tor. We probably won't do this. Not sure that date is any useful. But the info, that clock is way off, is useful.)

  • yes:
    • output: Sep 03 10:34:00.000 [warn] Certificate already expired. Either their clock is set wrong, or your clock is wrong.
    • exit 0
  • no:
    • exit 1

Can be replaced by Tor ControlPort / python-stem? No. Tor Project Upstream Feature Request: make certificate lifetime accessible through Tor's ControlPort

/usr/lib/anon-shared-helper-scripts/anondate --tor-cert-valid-after[edit]

Similar to above, but less output.

  • output: Jun 16 00:00:00 2014 GMT
  • Exit codes unreliable.
  • Don't use without using the above first.
  • (Could be fixed in the code if worthwhile.)

Random News:

Don't mind having your name connected to Whonix? Follow us on Twitter / Facebook / g+.


Impressum | Datenschutz | Haftungsausschluss

https | (forcing) onion
Share: Twitter | Facebook | Google+
This is a wiki. Want to improve this page? Help is welcome and volunteer contributions are happily considered! See Conditions for Contributions to Whonix, then Edit! IP addresses are scrubbed, but editing over Tor is recommended. Edits are held for moderation. Whonix (g+) is a licensee of the Open Invention Network. Unless otherwise noted, the content of this page is copyrighted and licensed under the same Libre Software license as Whonix itself.