Copy certificate in different file formats