fixed cert chain verification and samples