Cut certificate in different file formats