/build/static/layout/Breadcrumb_cap_w.png

How to create Java Deployment Rule?

Hello Everyone.

I'm creating a package that will deploy a Java Rule

1.    Identify critical applets and web start applications, either by location (e.g. http://payroll.example.com), name (e.g. Solitaire), or code-sign hash. - Completed

2.    Create a file called ruleset.xml - Completed

3.    Package your ruleset.xml into a signed DeploymentRuleSet.jar – Stuck. L

4.    Deploy your DeploymentRuleSet.jar to user desktops

5.    Verify usage of your rule set on a client desktop

I have the ruleset.xml and converted it to DeploymentRuleSet.jar. 

I got stuck on signing the jar file. 


I checked all forums but they have different approach on signing the jar file. 

Guys you know how I can simply sign the jar file? What I need to install to use a tool to sign the jar


0 Comments   [ + ] Show comments

Answers (1)

Posted by: emgz01 9 years ago
Senior Purple Belt
0

Comments:
  • little bit confused on how they put the parameters. I have the exported certificate from our organization. Can I use that one? - ajcbasilio 9 years ago
    • I believe you can use the one you already have.

      Add it through the Java Control Panel as described in the link.
      For the next part, you may need to only do the jarsigner portion but I included both in case:
      1) keytool -import -file <YourCert.crt> -alias <AliasOfYourCert> -keystore <YourFile.jks>

      2) jarsigner -verbose -keystore server.p12 -storepass <YourPassword> -storetype pkcs12 DeploymentRuleSet.jar <TheAliasOfYourCert>

      Now copy the jar file into C:\Windows\Sun\Java\Deployment and test. Also, look for "trusted.cacerts" in your AppData\LocalLow\Sun\Java\Deployment\security folder and copy that file to C:\Windows\Sun\Java\Deployment\Security in your package. - emgz01 9 years ago
      • 1) keytool -import -file <YourCert.crt> -alias <AliasOfYourCert> -keystore <YourFile.jks>

        Is the .jks file can create everywhere?

        My certificate is .cer I just rename it as .crt.

        2) jarsigner -verbose -keystore server.p12 -storepass <YourPassword> -storetype pkcs12 DeploymentRuleSet.jar <TheAliasOfYourCert>

        who is server.p12? the -storetype "pkcs12" refer to .cer? - ajcbasilio 9 years ago
      • keytool.exe -import -file "C:\Temp\deprule\cert.crt" -alias mycert -keystore "C:\Temp\deprule\mycert.jks" -noprompt - ajcbasilio 9 years ago
      • jarsigner.exe -verbose -keystore "C:\Temp\deprule\mycert.jks" -storepass changeit -storetype pkcs12 "C:\Temp\deprule\DeploymentRuleSet.jar" mycert - ajcbasilio 9 years ago
      • following it this is my error

        jarsigner error: java.lang.RuntimeException: keystore load: DerInputStream.getLe
        ngth(): lengthTag=109, too big. - ajcbasilio 9 years ago
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ