How do I sign a Java applet for use in a browser?

前端 未结 6 1651
执念已碎
执念已碎 2020-11-29 17:56

I\'m trying to deploy a Java applet on my website. I also need to sign it, because I need to access the clipboard. I\'ve followed all the signing tutorials I could find bu

6条回答
  •  鱼传尺愫
    2020-11-29 18:28

    Here is a way to sign your jars and then check to see that all the class files are signed with your keystore.

    #!/bin/bash
    KEYSTORE=/home/user/NetBeansProjects/sign/keystore
    FILES=`find /home/user/NetBeansProjects/Project/dist/ -name "*.jar"`
    for f in $FILES; 
       do echo password |  /usr/bin/jarsigner -keystore $KEYSTORE -verbose $f myself;
       echo "Signed $f"; 
      /usr/bin/jarsigner -verify -verbose -certs $f | grep X.509 | sort -u;
    done
    

提交回复
热议问题