code: public static void write(final X509Certificate certificate, final @NonNull File file,
  		KeyFileFormat fileFormat) throws IOException, CertificateEncodingException
  	{
  		write(certificate, new FileOutputStream(file), fileFormat);
  	}
docs: Write the given {@link X509Certificate} into the given {@link File} in the given
  {@link KeyFileFormat} format.
  
  @param certificate
  the certificate
  @param file
  the file to write in
  @param fileFormat
  the file format to write
  @throws IOException
  Signals that an I/O exception has occurred.
  @throws CertificateEncodingException
  is thrown if an encoding error occurs.