public static void saveX509Cert ( Certificate cert , File certFile ) throws GeneralSecurityException , IOException { saveX509Cert ( new Certificate [ ] { cert } , certFile ) ; }
Save a certificate to a file . Remove all the content in the file if there is any before .