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