Take out certificate in various file formats