ERLEDIGT
NEIN
NEIN
ANTWORTEN
3
3
ZUGRIFFE
1663
1663
EMPFEHLEN
-
26.03.10 15:22 #1webstarter Tutorials.de Gastzugang
Hallo,
ich habe eine Webstart Anwendung erstellt und alle jar files mit dem jarsigner signiert.
Nun bekomme ich beim starten noch die Fehlermeldung:
Zwar hat die Anwendung eine digitale Signatur, bei der zugeordneten Datei (JNLP) fehlt diese jedoch.
Eine digitale Signatur stellt sicher, dass die Datei vom Anbieter stammt und nicht verändert wurde.
Nun habe ich schon Stunden im Web gesucht, kann aber nichts finden, wie man eine JNLP signiert.
Danke im Voraus
-
31.03.10 08:01 #2
- Registriert seit
- Sep 2008
- Beiträge
- 78
Hallo,
eine jnlp-Datei muß man nicht signieren. Meines Wissens geht das auch gar nicht.
Ich habe in einem anderen Forum mal eine Anleitung für das Signieren gepostent.
Hier der Link: http://www.java-forum.org/deployment...tml#post617654
Mit dieser Anleitung sollte es funktionieren.
Wenn nicht, poste doch bitte die gesamte Fehlermeldung.
MfG
hansmüller
-
Hallo,
Die jnlp Datei muß als
JNLP-INF/APPLICATION.JNLP
in die Jarfile mit der Main Methode gepackt werden.
Durch das Signieren der Jar wird diese auch mit signiert.
Sie kann auch einen anderen Namen als APPLICATION.JNLP haben.
happy Coding
-
31.03.10 11:07 #4
- Registriert seit
- Sep 2008
- Beiträge
- 78
Danke sagi7,
man lernt nie aus.
Ich habe auf die schnelle folgende Links gefunden:
http://www.zeeman.de/computer/java6-...-jnlp-spec-101
http://72.5.124.102/thread.jspa?mess...55196#10555196
Und folgendes steht in der Spezifikation jnlp-1_0_1-spec.pdf von sun:
Das Signieren der jnlp-Datei ist optional, man muß es also nicht machen.5.4.1 SIGNING OF JNLP FILES
A JNLP file can optionally be signed. A JNLP Client must check if a signed version of the JNLP file
exists, and if so, verify that it matches the JNLP file that is used to launch the application. If it does not
match, then the launch must be aborted. If no signed JNLP file exists, then the JNLP file is not signed,
and no check needs to be performed.
A JNLP file is signed by including a copy of it in the signed main JAR file. The copy must match the
JNLP file used to launch the application. The signed copy must be named: JNLPINF/
APPLICATION.JNLP. The APPLICATION.JNLP filename should be generated in upper case,
but should be recognized in any case.
The signed JNLP file must be compared byte-wise against the JNLP file used to launch the application. If
the two byte streams are identical, then the verification succeeds, otherwise it fails.
As described above, a JNLP file is not required to be signed in order for an application to be signed. This
is similar to the behavior of Applets, where the Applet tags in the HTML pages are not signed, even when
granting unrestricted access to the Applet.
Wenn man es doch macht, muß die jnlp-Datei, welche man zum Download anbietet und die jnlp-Datei, welche sich in der jar-Datei befindet, gleich sein. Lt. Spec werden beide Dateien eingelesen und die Byte-Ströme miteinander verglichen. Wenn diese nicht gleich sind, ist die Verifizierung fehlgeschlagen.
MfG
hansmueller
Ähnliche Themen
-
In Java eine Properties Datei signieren
Von ScoopDTN im Forum JavaAntworten: 0Letzter Beitrag: 15.12.10, 11:00 -
[Java6] WebStart-Problem!! Frage zum Nachladen von Lib's/Änderung der JNLP
Von vfl_freak im Forum JavaAntworten: 5Letzter Beitrag: 14.06.10, 12:29 -
Java WebStart : Prüfen, ob JNLP-Datei aktuallisiert wurde
Von vfl_freak im Forum JavaAntworten: 2Letzter Beitrag: 11.01.10, 11:44 -
Applikations-Zugriff auf die zugehörige JNLP-Datei möglich
Von vfl_freak im Forum JavaAntworten: 0Letzter Beitrag: 04.12.09, 11:33 -
Java WebStart - JNLP sofort ausführen
Von du ciel im Forum JavaAntworten: 0Letzter Beitrag: 10.06.08, 14:17





Zitieren
Login





