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