getdown couldn't verify the application's digital signature

175 views
Skip to first unread message

Luca Bonaldo

unread,
Apr 4, 2013, 4:31:11 AM4/4/13
to ooo-...@googlegroups.com
Hello,
I' building a getdown project, but is not work..
Result error messagge:

In example the applet mode your writen :

<taskdef name="digest" classname="com.threerings.getdown.tools.DigesterTask"
         
classpathref="getdown.classpath"/>
<property file="certificate.properties"/>
<digest appdir="${app_dir}" keystore="${sign.keystore}" storepass="${sign.storepass}"
       
alias="${sign.alias}"/>

what's to reference ${app_dir} ?
can someone help me?

The code of applet and getdown.txt is here:

Michael Bayne

unread,
Apr 8, 2013, 9:29:50 AM4/8/13
to ooo-...@googlegroups.com

On Thu, Apr 4, 2013 at 1:31 AM, Luca Bonaldo <in...@lucabonaldo.it> wrote:
what's to reference ${app_dir} ?
can someone help me?

app_dir is the directory in which you are building your application.

The snippet of XML is for your Ant build file.

-- m...@samskivert.com

Luca Bonaldo

unread,
Apr 8, 2013, 10:47:15 AM4/8/13
to ooo-...@googlegroups.com
Thanks,
but this project not work,this project not work, java's console get output:
2013/04/08 16:22:26:351 INFO g.a: Signature does not match [cert=Sun RSA public key, 2048 bits
  modulus: 19579...
  public exponent: 65537]
2013/04/08 16:22:26:351 WARNING g.a: getdown() failed.
java.io.IOException: m.corrupt_digest_signature_error
at com.threerings.getdown.a.e.a(Unknown Source)
at com.threerings.getdown.a.e.p(Unknown Source)
at com.threerings.getdown.a.e.b(Unknown Source)
at com.threerings.getdown.launcher.Getdown.run(Unknown Source)
2013/04/08 16:22:26:352 INFO g.a: Releasing lock

Applet code:
            <taskdef name="digest" classname="com.threerings.getdown.tools.DigesterTask" classpath="getdown-tools.jar" />
    
            <property file="certificate.properties"/>

            <digest appdir="${app_dir}" keystore="${sign.keystore}" alias="${sign.alias}" storepass="${sign.storepass}/>

            <signjar keystore="${sign.keystore}" alias="${sign.alias}" storepass="${sign.storepass}">
                   <fileset dir="${app_dir}" includes="getdown-client.jar"/>
            </signjar>

certificate.properties:
sign.keystore=STile_keystore/keystore.jks
sign.storepass=*****
sign.alias=bonny

these files are organized on this mode:
    client/
          STile/
                 getdown.txt
                 getdown-client.jar
                 digest.txt
                 digest.txt.sig
                 lib/...
                 native/....
           applet.html
           certificate.properties
           getdown-tools.jar
           STile_keystore/
                         keystore.jks

i signed files with the keystore keystore.jks .
i not understand where is the problem...
the applet not find the keystore, i'm thinking this.

Michael Bayne

unread,
Apr 10, 2013, 5:00:31 PM4/10/13
to ooo-...@googlegroups.com
On Mon, Apr 8, 2013 at 7:47 AM, Luca Bonaldo <in...@lucabonaldo.it> wrote:
Applet code:
            <taskdef name="digest" classname="com.threerings.getdown.tools.DigesterTask" classpath="getdown-tools.jar" />
    
            <property file="certificate.properties"/>

            <digest appdir="${app_dir}" keystore="${sign.keystore}" alias="${sign.alias}" storepass="${sign.storepass}/>

            <signjar keystore="${sign.keystore}" alias="${sign.alias}" storepass="${sign.storepass}">
                   <fileset dir="${app_dir}" includes="getdown-client.jar"/>
            </signjar>

I assume you mean "Ant code" not "Applet code", those are Ant build file commands and have nothing to do with the <applet> tag.

certificate.properties:
sign.keystore=STile_keystore/keystore.jks
sign.storepass=*****
sign.alias=bonny

these files are organized on this mode:
    client/
          STile/
                 getdown.txt
                 getdown-client.jar
                 digest.txt
                 digest.txt.sig
                 lib/...
                 native/....
           applet.html
           certificate.properties
           getdown-tools.jar
           STile_keystore/
                         keystore.jks

i signed files with the keystore keystore.jks .
i not understand where is the problem...
the applet not find the keystore, i'm thinking this.

I think you may be confused at how things work.

The applet does not need to read the keystore, and indeed it should not be on your web server where anyone can download it.

You just sign your getdown-client.jar file and you generate the digest.txt.sig file and those are the only things that are needed for signed applet mode.

The Ant commands you have above look correct for signing the getdown-client.jar and for generating digest.txt.sig.

I tried looking at your applet.html file but your server returns 404 when I try to fetch it. Are you sure something isn't wrong there?


Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
0 new messages