Home | About | Account | Forums | Games
Guest   | Login
  Index  | Recent Threads  | Register  | Search  | Help  | RSS feeds  | View Unanswered Threads  
  Search  


Quick Go »
Thread Status: Normal
Forum Status: Locked
Total posts in this thread: 10
[Add To My Favorites] [Watch this Thread]
Author
Previous Thread This topic has been viewed 4031 times and has 9 replies Next Thread
aderal123
Stranger



Joined: May 10, 2008
Posts: 6
Status: Offline

digest.txt.sig problem

Hi!

I use Getdown I config everythin and when I try to lunch it I get that error:

 
INFO: Attempting to refetch 'digest.txt.sig' from 'http://www.acknex.info/webstart/1/digest.txt.sig'.
2008-05-11 12:22:55 com.threerings.getdown.a a
WARNING: m.corrupt_digest_signature_error
java.io.IOException: m.corrupt_digest_signature_error
at com.threerings.getdown.data.e.a(Unknown Source)
at com.threerings.getdown.data.e.q(Unknown Source)
at com.threerings.getdown.data.e.b(Unknown Source)
at com.threerings.getdown.launcher.Getdown.c(Unknown Source)
at com.threerings.getdown.launcher.Getdown.run(Unknown Source)
2008-05-11 12:22:55 com.threerings.getdown.a a
INFO: Releasing lock


Can someone can help me witch this ?? Its very important.
[May 11, 2008 3:35:18 AM] Show Printable Version of Post        Send Private Message [Link]  Go to top 
mdb
Advanced Member
Member's Avatar


Joined: May 7, 2002
Posts: 282
Status: Offline
Re: digest.txt.sig problem

If you are using Getdown as an applet, you need to generate a signature file which binds your signed applet to a particular application URL otherwise someone could use your signed Getdown applet to download and install their own software while impersonating yourself or your company. That would be bad. :)

When you invoke the digester to generate your digest.txt file, you need to pass information about the same keystore you use to sign the getdown applet .jar file. For example:
    <taskdef name="digest" classname="com.threerings.getdown.tools.DigesterTask">
<classpath>
<pathelement path="${deploy.dir}/lib/commons-codec.jar"/>
<pathelement path="${deploy.dir}/lib/getdown.jar"/>
<pathelement path="${deploy.dir}/lib/samskivert.jar"/>
</classpath>
</taskdef>
<digest appdir="${app_dir}" keystore="${sign.keystore}" alias="${sign.alias}"
storepass="${sign.storepass}"/>
In this case:
  • app_dir is set to the directory containing your application
  • sign.keystore is set to the path to your keystore
  • sign.alias is your signing key alias
  • sign.storepass is the keystore password

[May 13, 2008 7:37:07 AM] Show Printable Version of Post        Send Private Message    http://www.samskivert.com/ [Link]  Go to top 
aderal123
Stranger



Joined: May 10, 2008
Posts: 6
Status: Offline

Re: digest.txt.sig problem

Ok, and whar ant code schould I use to generate digest.txt ?? I generated it by hand :)
[May 14, 2008 10:37:13 PM] Show Printable Version of Post        Send Private Message [Link]  Go to top 
mdb
Advanced Member
Member's Avatar


Joined: May 7, 2002
Posts: 282
Status: Offline
Re: digest.txt.sig problem

The code I showed you above will generate the digest.txt file *and* the digest.txt.sig file.
[May 16, 2008 12:49:32 AM] Show Printable Version of Post        Send Private Message    http://www.samskivert.com/ [Link]  Go to top 
aderal123
Stranger



Joined: May 10, 2008
Posts: 6
Status: Offline

Re: digest.txt.sig problem

Eclips tell me that the com.threerings.getdown.tools.DigesterTask class cannot be found. This is my ant code:


<taskdef name="digest" classname="com.threerings.getdown.tools.DigesterTask">
<classpath>
<pathelement path="lib/commons-codec.jar"/>
<pathelement path="getdown-retro-pro.jar"/>
<pathelement path="lib/samskivert.jar"/>
</classpath>
</taskdef>
<digest appdir="1/" keystore="***" alias="***"
storepass="***"/>


Whats wrong ??
[May 17, 2008 2:51:04 PM] Show Printable Version of Post        Send Private Message [Link]  Go to top 
aderal123
Stranger



Joined: May 10, 2008
Posts: 6
Status: Offline

Re: digest.txt.sig problem

When I use code like this gives me the same error.


<taskdef name="digest" classname="com.threerings.getdown.tools.DigesterTask">
<classpath>
<pathelement path="${deploy.dir}/lib/commons-codec.jar"/>
<pathelement path="${deploy.dir}/getdown-retro-pro.jar"/>
<pathelement path="${deploy.dir}/lib/samskivert.jar"/>
</classpath>
</taskdef>
<digest appdir="${deploy.dir}/1/" keystore="***" alias="***"
storepass="***"/>

[May 17, 2008 2:55:25 PM] Show Printable Version of Post        Send Private Message [Link]  Go to top 
mdb
Advanced Member
Member's Avatar


Joined: May 7, 2002
Posts: 282
Status: Offline
Re: digest.txt.sig problem

The jar files in the classpath section need to actually point to real jar files. So make sure those jar files exist at the paths that are specified.
----------------------------------------
[Edit 1 times, last edit by mdb at May 18, 2008 2:47:18 AM]
[May 18, 2008 2:45:28 AM] Show Printable Version of Post        Send Private Message    http://www.samskivert.com/ [Link]  Go to top 
aderal123
Stranger



Joined: May 10, 2008
Posts: 6
Status: Offline

Re: digest.txt.sig problem

Here on my hard disk I have whole getdown script:

C:\Documents and Settings\MARCIN\projekty\Projekty jME\getdown

How schould I write the paths in my ant script (getdown-retro-pro.jar and getdown-pro.jar are iC:\Documents and Settings\MARCIN\projekty\Projekty jME\getdown\lib the same as commons-codec.jar and samskivert.jar)

TIA
[May 18, 2008 6:50:18 AM] Show Printable Version of Post        Send Private Message [Link]  Go to top 
mdb
Advanced Member
Member's Avatar


Joined: May 7, 2002
Posts: 282
Status: Offline
Re: digest.txt.sig problem

Make a "lib" directory in the same directory that you have your build.xml file. Then copy into that lib directory the commons-codec.jar, getdown-retro-pro.jar and samskivert.jar files from the other getdown directory on your harddrive.

Then change the build script to use:
        <pathelement path="lib/commons-codec.jar"/>
<pathelement path="lib/getdown-retro-pro.jar"/>
<pathelement path="lib/samskivert.jar"/>
and it should find the jar files that it needs to generate the digest.txt file.
[May 18, 2008 9:21:33 AM] Show Printable Version of Post        Send Private Message    http://www.samskivert.com/ [Link]  Go to top 
aderal123
Stranger



Joined: May 10, 2008
Posts: 6
Status: Offline

Re: digest.txt.sig problem

Still the same error. :( Maybe I have somethink wrong with this 3 files....
[May 18, 2008 2:25:19 PM] Show Printable Version of Post        Send Private Message [Link]  Go to top 
[Show Printable Version of Thread]

Home | About | Account | Forums | Games           ©2005 Three Rings Design, Inc