tor-keymgr, tor-hsservice: Add functions for extracting key info and add KeystoreSweeper
This MR adds functionality for extracting information out of a KeyPath
. This will come in handy when we implement the CLI (for implementing the subcommand for describing keys).
This also adds a helper called KeystoreSweeper
to tor-hsservice
, for removing expired keys.
Edited by gabi-250