docs: private void doSave() {
  		if (txt_PubCert.getDocument().getLength() < MIN_CERT_LENGTH) {
  			logger.error("Illegal state! There seems to be no certificate available.");
  			bt_save.setEnabled(false);
  		}
  		final JFileChooser fc = new JFileChooser(System.getProperty("user.home"));
  		fc.setFileSelectionMode(JFileChooser.FILES_ONLY);
  		fc.setMultiSelectionEnabled(false);
  		fc.setSelectedFile(new File(OWASP_ZAP_ROOT_CA_FILENAME));
  		if (fc.showSaveDialog(this) == JFileChooser.APPROVE_OPTION) {
  			final File f = fc.getSelectedFile();
  			if (logger.isInfoEnabled()) {
  				logger.info("Saving Root CA certificate to " + f);
  			}
  			try {
  				writePubCertificateToFile(f);
  			} catch (final Exception e) {
  				logger.error("Error while writing certificate data to file " + f, e);
  			}
  		}
  	}