Blog

Signed JAR Files

by | Sep 24, 2024 | Uncategorized | 0 comments

I recently had a customer who used Java’s DeploymentRuleSet.jar file to whitelist Documentum’s UCF applet (among others) whose signing certificate expired.  Starting with Java 1.7_xxx, Java allows you to create a set of rules to whitelist applets from internal sources or from vendors you trust by encapsulating the rules in a signed JAR file and placing it in the c:\Windows\Sun\Java\Deployment folder of each client’s workstation.  This notion was put forth as a work around for ETA xxxx.  The JAR must be signed with a real certificate from a verifiable certificate authority (not self-signed), and when it expires, so does your whitelist.  This is what happened to my customer.  To rectify the problem, we simply had to request a new certificate, sign the JAR file, and redeploy it.  If you have never had to sign a JAR file like this, learn from my mistakes.

  1. Download and install Portecles (you may need the BouncyCastle JARs also).
  2. If you live in the United States, you may need to download and install the xxxx security policy JARs to enable encryption keys longer than 120 bits.
  3. Create a new keystore of type pcks12.
  4. Generate a key pair
  5. Generate a Certificate Signing Request (CSR) from your key pair
  6. Send the CSR to your CA
  7. Upon recipt of your certificate from your CA, import it into the keystore by right-clicking on the key pair and choosing Import CA Response
  8. You can verify by….
  9. Save
  10. jarsigner ….

 

Categories

Need a bit more info on how Armedia can help you?

Feel free to schedule a 30-minute no-obligations meeting.

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *