Hi all,

I would like to be able to export my certificate(that is create one) so that
others can use it to allow my jars access to system resources and to allow
users to verify that the jar is in fact mine.

on the command line,you would use the java commands for example:
(1) jar cvf Count.jar Count.class
(2)keytool -genkey -alias signFiles -keypass kpi135 -keystore
susanstore -storepass ab987c
(3)jarsigner -keystore susanstore -signedjar sCount.jar Count.jar signFiles
(4)keytool -export -keystore susanstore -alias signFiles -file
SusanJones.cer

I can do the first 3 steps in an ant build.xml but I cannot do the creation
of a certificate

<?xml version="1.0"?>
<project name ="digsign" default ="signjars">
    <target name="compile">
                <javac srcdir="src" destdir="classes" />
      </target>

        <target name="jar" depends ="compile">
        <jar destfile="./jars/count.jar" basedir="./classes"/>
        </target>

        <target name="genkey" depends ="jar">
                <genkey alias="signFiles" keypass="kpi135" keystore="susanstore"
storepass="ab987c" >
                  <dname>
                    <param name="CN" value="tssg"/>
                    <param name="OU" value="wit"/>
                    <param name="O"  value="research"/>
                    <param name="C"  value="ire"/>
                  </dname>
                </genkey>
                </target>

        <target name="signjars" depends ="exportcert">
                <signjar jar="./jars/count.jar" keystore="./susanstore"
signedjar="./jars/sCount.jar" alias="signFiles"
keypass="kpi135" storepass="ab987c"/>
                </target>

        <target name="exportcert" depends ="genkey">
                WHAT GOES HERE?????????????????????????
                </target>
</project>

So how do I create a certificate that an other user can use to verify that
he/she will be running my jar file?
I cannot find a task to do this. has anyone got a solution for this?

regards,
Will.





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to