fixed to strip text from final cert