code: private void doView() {
  		if (txt_PubCert.getDocument().getLength() < MIN_CERT_LENGTH) {
  			logger.error("Illegal state! There seems to be no certificate available.");
  			bt_view.setEnabled(false);
  		}
  		boolean written = false;
  		File tmpfile = null;
  		try {
  			tmpfile = File.createTempFile(OWASP_ZAP_ROOT_CA_NAME, OWASP_ZAP_ROOT_CA_FILE_EXT);
  			writePubCertificateToFile(tmpfile);
  			written = true;
  		} catch (final Exception e) {
  			logger.error("Error while writing certificate data into temporary file.", e);
  		}
  		if (tmpfile != null && written) {
  			if (Desktop.isDesktopSupported()) {
  				try {
  					Desktop.getDesktop().open(tmpfile);
  				} catch (final IOException e) {
  					logger.error("Error while telling the Operating System to open "+tmpfile, e);
  				}
  			}
  		}
  	}
docs: writes the certificate to a temporary file and tells the OS to open it
  using java.awrt.Desktop#open()