X

This blog introduces how to diagnose Agile PLM related issues.

  • January 15, 2017

Customize Subclass Icons for JavaClient

Jie Chen
Senior Principal Technical Support Engineer

Agile administrator can customize icon for subclass on both Web Client and Java Client. However the way to customize Java Client described in Administration User guide is wrong, like below.

The correct instruction is to use Oracle keystore to sign modified custom.jar officially, or user can sign this jar with own keystore. Below demonstrates how to self-sign custom.jar.

Generate Keystore

d:\>keytool -genkeypair -dname "cn=Jie Chen, ou=Agile, o=Oracle, c=US" -alias javaclientKey -keypass oracle -keystore d:/temp/custom/javaclientKeystore -storepass oracle -validity 3600

Sign Jar

d:\>jarsigner -keystore d:/temp/custom/javaclientKeystore -signedjar d:/temp/custom//custom.jar d:/temp/custom//custom.jar javaclientKey
Enter Passphrase for keystore:
jar signed.
Warning:
No -tsa or -tsacert is provided and this jar is not timestamped. Without a timestamp, users may not be able to validate this jar after the signer certificate's expiration date (2026-11-24) or after any future revocation date.

Verify Jar

d:\>jarsigner -verify -verbose -certs d:/temp/custom/custom.jar
s        367 Sun Jan 15 17:31:04 CST 2017 META-INF/MANIFEST.MF

 

X.509, CN=Jie Chen, OU=Agile, O=Oracle, C=US

 

[certificate is valid from 1/15/17 5:06 PM to 11/24/26 5:06 PM]

 

[CertPath not validated: Path does not chain with any of the trust anchors]

 

403 Sun Jan 15 17:31:04 CST 2017 META-INF/JAVACLIE.SF

 

950 Sun Jan 15 17:31:04 CST 2017 META-INF/JAVACLIE.DSA

 

0 Thu Dec 10 13:02:44 CST 2015 META-INF/
sm 1215 Wed Apr 21 13:40:56 CST 2010 HowtoCustomizeIcons.txt

 

X.509, CN=Jie Chen, OU=Agile, O=Oracle, C=US

 

[certificate is valid from 1/15/17 5:06 PM to 11/24/26 5:06 PM]

 

[CertPath not validated: Path does not chain with any of the trust anchors]
sm 1709 Sat Jan 14 20:30:46 CST 2017 qq.png

 

X.509, CN=Jie Chen, OU=Agile, O=Oracle, C=US

 

[certificate is valid from 1/15/17 5:06 PM to 11/24/26 5:06 PM]

 

[CertPath not validated: Path does not chain with any of the trust anchors]
s = signature was verified
m = entry is listed in manifest
k = at least one certificate was found in keystore
i = at least one certificate was found in identity scope
jar verified.
Warning:
This jar contains entries whose certificate chain is not validated.
This jar contains signatures that does not include a timestamp. Without a timestamp, users may not be able to validate this jar after the signer certificate's expiration date (2026-11-24) or after any future revocation date.

Trust self-sign

Since this is a self-signed, you must add Java Client url to Java Exception List on each client machine.

Result

Join the discussion

Comments ( 1 )
  • jams Sunday, August 20, 2017
    good article
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.