0 Replies Latest reply on Jun 24, 2013 6:57 AM by User_Sep

    Signing multiple Jars




      I am going to create a set of trusted jar with a single certificate.


      Let me explain the steps I followed.


      Step 1 : keytool -genkey -dname "cn=oraclejar,ou=oraclejar,o=oraclejar,c=India" -alias oraclejar -keypass oraclejar -keystore C:\Oracle\Middleware\jdk160_24\certificates\keystore  -storepass oraclejar -validity 365


      Step 2: keytool -list -keystore C:\Oracle\Middleware\jdk160_24\certificates\keystore -storepass oraclejar


      Step 3: jarsigner -keystore C:\Oracle\Middleware\jdk160_24\certificates\keystore -storepass oraclejar -keypass oraclejar mymenu.jar mytools.jar oraclejar


      In the above step I'm trying to create 2 jars(mymenu.jar ,mytools.jar) as trusted with a single certificate. But the following error occurs,


      jarsigner: Certificate chain not found for: mytools.jar. mytools.jar must reference a valid KeyStore key containing a private key and corresponding public key certificate chain.

      I don't know where it goes wrong. Anyone please guide me.


      - Sep