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