Snip certificate in different file formats