diff options
| -rw-r--r-- | BKUHelp/src/main/webapp/help/de/help.install.cacert.html | 52 | ||||
| -rw-r--r-- | BKUHelp/src/main/webapp/help/de/help.install.cacert.png | bin | 0 -> 25299 bytes | |||
| -rw-r--r-- | BKUHelp/src/main/webapp/help/index.html | 1 | ||||
| -rw-r--r-- | BKULocal/src/main/webapp/index.html | 4 | ||||
| -rw-r--r-- | BKUWebStart/src/main/java/at/gv/egiz/bku/webstart/Launcher.java | 56 | ||||
| -rw-r--r-- | BKUWebStart/src/main/jnlp/template-local.xml | 2 | ||||
| -rw-r--r-- | BKUWebStart/src/main/jnlp/template.xml | 2 | ||||
| -rw-r--r-- | BKUWebStart/src/main/resources/at/gv/egiz/bku/webstart/messages.properties | 2 | 
8 files changed, 100 insertions, 19 deletions
| diff --git a/BKUHelp/src/main/webapp/help/de/help.install.cacert.html b/BKUHelp/src/main/webapp/help/de/help.install.cacert.html new file mode 100644 index 00000000..a7573102 --- /dev/null +++ b/BKUHelp/src/main/webapp/help/de/help.install.cacert.html @@ -0,0 +1,52 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> +<title>Bürgerkarte - Hilfe</title> +<link href="../help.css" rel="stylesheet" type="text/css" /> +<link rel="shortcut icon" href="../chip16.ico" type="image/x-icon"/> +<!--[if IE]> +<style type="text/css">  +/* place css fixes for all versions of IE in this conditional comment */ +.twoColElsLtHdr #sidebar1 { padding-top: 30px; } +.twoColElsLtHdr #mainContent { zoom: 1; padding-top: 15px; } +/* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */ +</style> +<![endif]--> +</head> + +<body class="twoColElsLtHdr"> + +<div id="container"> +  <div id="header"> +    <h1>Online-Hilfe</h1> +    <!-- end #header --></div> +  <div id="mainContent" style="margin: 1.5em 1.5em 0 1.5em"> +    <h1>Installation des CA Zertifikats</h1> +    <p>Die Bürgerkartenumgebung authentifiziert sich mittels eines TLS Zertifikats ausgestellt auf +      <code>CN=127.0.0.1, O=MOCCA, OU=MOCCA TLS Server</code>. +      Beim Aufruf der Bürgerkartenumgebung (zum Beispiel bei einem Anmeldevorgang mit Bürgerkarte) +      wird dieses Zertifikat vom Web-Browser überprüft. +      Um diese Überprüfung zu ermöglichen ist es notwendig das Ausstellerzertifikat, lautend auf +      <code>O=MOCCA, OU=MOCCA TLS Server CA</code>, im Web-Browser zu installieren. +    </p> +    <p> +      Klicken Sie dazu auf die Verknüpfung <a href="../../installCertificate">CA Zertifikat installieren</a> +      und wählen Sie im angezeigten Dialog die Option 'Dieser CA vertrauen um Websites zu identifizieren'. +      (Anmerkung: Der genaue Wortlaut hängt vom verwendeten Web-Browser ab). +    </p> +    <p><img src="help.install.cacert.png" alt="Bildschirmfoto des Zertifikatsinstallationsdialogs" height="287" width="565"/></p> +    <p style="font-size:70%;"><strong>Hinweis:</strong> Der tatsächliche Dialog kann vom oben dargestellten abweichen und hängt vom verwendeten Web-Browser ab.</p> +    <p>Kopieren Sie diese Verknüpfung und rufen Sie sie in weiteren Web-Browsern ihrer Wahl auf um das Zertifikat auch dort zu installieren.</p> +    <p>Das CA Zertifikat wird ausschließlich zur Identifikation der lokalen Bürgerkartenumgebung verwendet +    und kann bei der Deinstallation der Bürgerkartenumgebung aus dem Web-Browser entfernt werden.</p> +    <p><br class="clearfloat" /></p> +    </div> +  <div id="footer"> +  	<p> +    	<a href="http://www.buergerkarte.at">Österreichische Bürgerkarte</a> | <a href="http://mocca.egovlabs.gv.at">Bürgerkartensoftware MOCCA</a> +    </p> +  </div> +<!-- end #container --></div> +</body> +</html> diff --git a/BKUHelp/src/main/webapp/help/de/help.install.cacert.png b/BKUHelp/src/main/webapp/help/de/help.install.cacert.pngBinary files differ new file mode 100644 index 00000000..0c1b2564 --- /dev/null +++ b/BKUHelp/src/main/webapp/help/de/help.install.cacert.png diff --git a/BKUHelp/src/main/webapp/help/index.html b/BKUHelp/src/main/webapp/help/index.html index 1c207572..3cb6354d 100644 --- a/BKUHelp/src/main/webapp/help/index.html +++ b/BKUHelp/src/main/webapp/help/index.html @@ -25,6 +25,7 @@          </p>          <p>Häufige gestellte Fragen werden in den folgenden Hilfeseiten behandelt:</p>          <ul> +          <li><a href="de/help.install.cacert.html">Installation des CA Zertifikats</a></li>            <li><a href="de/error.pcsc.html">Fehler bei der PC/SC Installation</a></li>            <li><a href="de/cardnotsupported.html">Unterstützte Signaturkarten</a></li>            <li><a href="de/help.cardpin.html">Auslesen der Daten auf der Bürgerkarte</a></li> diff --git a/BKULocal/src/main/webapp/index.html b/BKULocal/src/main/webapp/index.html index 6aefe43c..c5be17fe 100644 --- a/BKULocal/src/main/webapp/index.html +++ b/BKULocal/src/main/webapp/index.html @@ -37,11 +37,11 @@            zunächst das <a href="installCertificate">CA Zertifikat</a>.          </p> -        <p style="float:none">Weiters können Sie</p> +        <p style="clear:left; margin-top:1.5em">Weiters können Sie</p>          <ul>            <li>die <a href="help">Hilfe durchsehen</a>,</li>            <li>die <a href="PINManagement?redirect=./index.html">PIN Verwaltung starten</a> oder </li> -          <li>in jedem weiteren Web-Browser das <a href="installCertificate">CA Zertifikat installieren</a>.</li> +          <li>das <a href="installCertificate">CA Zertifikat installieren</a> (rufen Sie diesen Link aus anderen Web-Browsern auf um auch dort das CA Zertifikat zu installieren).</li>          </ul>          <p><br class="clearfloat" /></p> diff --git a/BKUWebStart/src/main/java/at/gv/egiz/bku/webstart/Launcher.java b/BKUWebStart/src/main/java/at/gv/egiz/bku/webstart/Launcher.java index 0106de62..8cc9817f 100644 --- a/BKUWebStart/src/main/java/at/gv/egiz/bku/webstart/Launcher.java +++ b/BKUWebStart/src/main/java/at/gv/egiz/bku/webstart/Launcher.java @@ -5,9 +5,12 @@ import at.gv.egiz.bku.webstart.gui.BKUControllerInterface;  import at.gv.egiz.bku.webstart.gui.PINManagementInvoker;
  import iaik.asn1.CodingException;
  import java.io.IOException;
 +import java.net.URISyntaxException;
  import java.util.Locale;
  import java.util.ResourceBundle;
 +import java.util.logging.Level;
 +import java.util.logging.Logger;
  import javax.jnlp.UnavailableServiceException;
  import org.apache.commons.logging.Log;
  import org.apache.commons.logging.LogFactory;
 @@ -30,6 +33,7 @@ import java.net.MalformedURLException;  import java.net.URI;
  import java.net.URL;
  import java.security.GeneralSecurityException;
 +import java.text.MessageFormat;
  import java.util.jar.Attributes;
  import java.util.jar.Manifest;
  import javax.imageio.ImageIO;
 @@ -39,6 +43,7 @@ import javax.swing.JFrame;  import org.mortbay.util.MultiException;
  public class Launcher implements BKUControllerInterface, ActionListener {
 +  public static final String HELP_COMMAND = "help";
    public static final String WEBAPP_RESOURCE = "BKULocal.war";
    public static final String CERTIFICATES_RESOURCE = "BKUCertificates.jar";
 @@ -59,8 +64,10 @@ public class Launcher implements BKUControllerInterface, ActionListener {    public static final String ERROR_CONFIG = "tray.error.config";
    public static final String ERROR_BIND = "tray.error.bind";
    public static final String ERROR_PIN = "tray.error.pin.connect";
 +  public static final String ERROR_OPEN_URL = "tray.error.open.url";
    public static final String LABEL_SHUTDOWN = "tray.label.shutdown";
    public static final String LABEL_PIN = "tray.label.pin";
 +  public static final String LABEL_HELP = "tray.label.help";
    public static final String LABEL_ABOUT = "tray.label.about";
    public static final String TOOLTIP_DEFAULT = "tray.tooltip.default";
 @@ -76,16 +83,19 @@ public class Launcher implements BKUControllerInterface, ActionListener {    public static final URL HTTPS_SECURITY_LAYER_URL;
    public static final URL INSTALL_CERT_URL;
    public static final URL PIN_MANAGEMENT_URL;
 +  public static final URL HELP_URL;
    static {
      URL http = null;
      URL https = null;
      URL pin = null;
      URL cert = null;
 +    URL help = null;
      try {
        http = new URL("http://localhost:" + Integer.getInteger(Container.HTTPS_PORT_PROPERTY, 3495).intValue());
        https = new URL("https://localhost:" + Integer.getInteger(Container.HTTPS_PORT_PROPERTY, 3496).intValue());
        pin = new URL(http, "/PINManagement");
        cert = new URL(http, "/installCertificate");
 +      help = new URL(http, "/help");
      } catch (MalformedURLException ex) {
        log.error(ex);
      } finally {
 @@ -93,6 +103,7 @@ public class Launcher implements BKUControllerInterface, ActionListener {        HTTPS_SECURITY_LAYER_URL = https;
        PIN_MANAGEMENT_URL = pin;
        INSTALL_CERT_URL = cert;
 +      HELP_URL = help;
      }
    }
    public static final String version;
 @@ -170,6 +181,18 @@ public class Launcher implements BKUControllerInterface, ActionListener {        throw ex;
      }
    }
 +
 +  private void browse(URL url) throws IOException, URISyntaxException {
 +    // don't use basicService.showDocument(), which causes a java ssl warning dialog
 +    if (Desktop.isDesktopSupported()) {
 +      Desktop desktop = Desktop.getDesktop();
 +      if (desktop.isSupported(Desktop.Action.BROWSE)) {
 +        desktop.browse(url.toURI());
 +        return;
 +      }
 +    }
 +    throw new IOException("current platform does not support Java Desktop API");
 +  }
    private TrayIcon initTrayIcon() {
      if (SystemTray.isSupported()) {
 @@ -192,6 +215,11 @@ public class Launcher implements BKUControllerInterface, ActionListener {          PopupMenu popup = new PopupMenu();
 +        MenuItem helpItem = new MenuItem(messages.getString(LABEL_HELP));
 +        helpItem.addActionListener(this);
 +        helpItem.setActionCommand(HELP_COMMAND);
 +        popup.add(helpItem);
 +
          MenuItem pinItem = new MenuItem(messages.getString(LABEL_PIN));
          pinItem.addActionListener(this);
          pinItem.setActionCommand(PIN_COMMAND);
 @@ -273,20 +301,10 @@ public class Launcher implements BKUControllerInterface, ActionListener {          }
        }
        if (config.isCertRenewed()) {
 -        // don't use basicService.showDocument(), which causes a java ssl warning dialog
 -        if (Desktop.isDesktopSupported()) {
 -          Desktop desktop = Desktop.getDesktop();
 -          if (desktop.isSupported(Desktop.Action.BROWSE)) {
 -            try {
 -              desktop.browse(HTTP_SECURITY_LAYER_URL.toURI());
 -            } catch (Exception ex) {
 -              log.error("failed to open system browser, install TLS certificate manually: " + HTTPS_SECURITY_LAYER_URL, ex);
 -            }
 -          } else {
 -            log.error("failed to open system browser, install TLS certificate manually: " + HTTPS_SECURITY_LAYER_URL);
 -          }
 -        } else {
 -          log.error("failed to open system browser, install TLS certificate manually: " + HTTPS_SECURITY_LAYER_URL);
 +        try {
 +          browse(HTTP_SECURITY_LAYER_URL);
 +        } catch (Exception ex) {
 +          log.error("failed to open system browser, install TLS certificate manually: " + HTTPS_SECURITY_LAYER_URL, ex);
          }
        }
        log.info("BKU successfully started");
 @@ -344,7 +362,15 @@ public class Launcher implements BKUControllerInterface, ActionListener {        log.debug("pin management dialog requested via tray menu");
        new Thread(new PINManagementInvoker(trayIcon, messages)).start();
 -      
 +    } else if (HELP_COMMAND.equals(e.getActionCommand())) {
 +      log.debug("help page requested via tray menu");
 +      try {
 +        browse(HELP_URL);
 +      } catch (Exception ex) {
 +        log.error("Failed to open " + HELP_URL, ex);
 +        String msg = MessageFormat.format(messages.getString(ERROR_OPEN_URL), HELP_URL);
 +        trayIcon.displayMessage(messages.getString(CAPTION_ERROR), msg, TrayIcon.MessageType.ERROR);
 +      }
      } else {
        log.error("unknown tray menu command: " + e.getActionCommand());
      }
 diff --git a/BKUWebStart/src/main/jnlp/template-local.xml b/BKUWebStart/src/main/jnlp/template-local.xml index 1b21c118..3193255a 100644 --- a/BKUWebStart/src/main/jnlp/template-local.xml +++ b/BKUWebStart/src/main/jnlp/template-local.xml @@ -18,7 +18,7 @@      <icon kind="default" href="img/chip32.png" width="32" height="32"/>      <icon kind="default" href="img/chip48.png" width="48" height="48"/>      <icon kind="splash" href="img/splash.png"/> -    <shortcut online="false"> +    <shortcut online="true">        <desktop/>        <menu submenu="e-Government"/>      </shortcut> diff --git a/BKUWebStart/src/main/jnlp/template.xml b/BKUWebStart/src/main/jnlp/template.xml index 8181bc31..790e60e1 100644 --- a/BKUWebStart/src/main/jnlp/template.xml +++ b/BKUWebStart/src/main/jnlp/template.xml @@ -18,7 +18,7 @@      <icon kind="default" href="img/chip32.png" width="32" height="32"/>      <icon kind="default" href="img/chip48.png" width="48" height="48"/>      <icon kind="splash" href="img/splash.png"/> -    <shortcut online="false"> +    <shortcut online="true">        <desktop/>        <menu submenu="e-Government"/>      </shortcut> diff --git a/BKUWebStart/src/main/resources/at/gv/egiz/bku/webstart/messages.properties b/BKUWebStart/src/main/resources/at/gv/egiz/bku/webstart/messages.properties index b6d9238e..9ba359be 100644 --- a/BKUWebStart/src/main/resources/at/gv/egiz/bku/webstart/messages.properties +++ b/BKUWebStart/src/main/resources/at/gv/egiz/bku/webstart/messages.properties @@ -25,8 +25,10 @@ tray.error.start=B\u00FCrgerkartenumgebung konnte nicht gestartet werden  tray.error.config=Konfiguration konnte nicht initialisiert werden, B\u00FCrberkartenumgebung wird nicht gestartet  tray.error.bind=Die f\u00FCr die B\u00FCrgerkartenumgebung reservierte Adresse wird bereits von einem anderen Dienst verwendet  tray.error.pin.connect=Verbindung zur PIN Verwaltung konnte nicht hergestellt werden +tray.error.open.url=Verbindung zu {0} konnte nicht hergestellt werden  tray.label.shutdown=Beenden  tray.label.pin=PIN Verwaltung +tray.label.help=Hilfe  tray.label.about=\u00DCber...  tray.tooltip.default=B\u00FCrgerkartenumgebung  about.frame.title=B\u00FCrgerkarte | 
