preserve and export trust anchor
Merge pull request #178 from mirleft/trust-anchor

preserve and export trust anchor