[tor-commits] [tor/maint-0.3.0] Test prerequisites: function to dup a cert, make get_own_cert mockable.