Skip to main content

Sign java application - solve the mixed signed code of pjirc

How to remove the boring mixed signed code in applets like pjirc (I've done this post for this specific one).


Tools needed java JDK  (just download it from the sun/oracle website).
http://www.oracle.com/technetwork/java/javase/downloads/index.html


I've used the same password ... it's not a good idea .... but who cares.

password keystore: pjircpjirc12345
key password: pjircpjirc12345


Remember to have the jdk binaries in the PATH
Go to the pjirc folder and rename the irc-unsigned.jar to irc.jar

Use those lines in a batch file. Modify them as much as you want.


-----batchfile.bat------
keytool -genkey -keyalg rsa -alias pjirc -dname "CN=Trueliar, OU=Somebody, O=SomeCompany, L=Somewhere, ST=Somewhere, C=IT" -storepass pjircpjirc12345 -keypass pjircpjirc12345
keytool -export -alias pjirc -file pjirc.crt -storepass pjircpjirc12345
jarsigner -storepass pjircpjirc12345 -keypass pjircpjirc12345 irc.jar pjirc
jarsigner -storepass pjircpjirc12345 -keypass pjircpjirc12345 pixx.jar pjirc
jarsigner -verify -verbose -certs pixx.jar

-----end of batchfile.bat------






Now you can use pjirc without having the 2nd boring message regarding the mixed signatures for the code.




-------------------------------------------------------------------------------


Some links that I've visited as reference

# keytool.exe and jarsigner.exe from the Sun Java Software Development Kit (version 1.4.2_06)

    web: java.sun.com/j2se/1.4.2/
    download: java.sun.com/j2se/1.4.2/download.html

# openssl.exe from the Win32 OpenSSL library (version 0.9.7e)

    web: http://www.openssl.org/
    download: www.openssl.org/related/binaries.html

# thawtecleaner.jar from Richard Dallaway

    web: www.dallaway.com/acad/webstart/
    download: www.dallaway.com/acad/webstart/thawtecleaner.jar

# signcode.exe from the Microsoft Authenticode Software Development Kit

    web: msdn.microsoft.com/workshop/security/authcode/intro_authenticode.asp
    download: download.microsoft.com/download/b/e/f/bef2551b-401d-4311-ab8f-13d3892b8154/codesigningx86.exe


http://www.pantaray.com/signcode.html
http://forum.pjirc.com/viewtopic.php?p=2832

Comments