What is JarSigner ?
A Custom Java JAR file needs to be signed using digital signature
before it to be used for Oracle Application Server. This is to ensure file integrity
and improve security. JarSigner command is used to create the signed JAR file.
This page give some examples of using JarSigner command.
JarSigner Examples:
Please substitute Password123 with your own Store Pass and Key
Pass. Please substitute DEV_devappsap01 with your Middle Tier / Application
Server name.
1) Generate Keypair for code signing certificate
2) Import root certificate to cacerts
keytool -import -alias YOUR_ALIAS -file root.crt -trustcacerts -v
-keystore cacerts
3) Import intermediate certificate to adkeystore.dat
keytool -import -file intermediate.crt -trustcacerts -alias
YOUR_ALIAS -keystore adkeystore.dat
4) Import Code Signing Cert (code signed cert would have been
copied to adkeystore.crt)
adjkey -import -file adkeystore.crt -trustcacerts
5) On your User Desktop import the certificates in this order to
Java
command -
$adjava oracle.apps.ad.jri.adjmx -areas $JAVA_TOP/customprod.zip
-outputFile $JAVA_TOP/customprod.jar -jar $CONTEXT_NAME 1 CUST jarsigner
-storePass Password123 -keyPass Password123
Error
ERROR: JarSigner subcommand exited with status 1
JarSigner standard output:
jarsigner: Certificate chain not found for: DEV_devappsap01. DEV_devappsap01 must reference a valid
KeyStore key entry containing a private key and corresponding public key
certificate chain.
Flag
adjava oracle.apps.ad.jri.adjmx -areas $JAVA_TOP/customprod.zip
-outputFile $JAVA_TOP/customprod.jar -jar $CONTEXT_NAME 1 CUST jarsigner
-storePass <KeyStore Password> -keyPass <Key Password>
adjava oracle.apps.ad.jri.adjmx -areas $JAVA_TOP/customprod.zip
-outputFile $JAVA_TOP/customprod.jar -jar $CONTEXT_NAME 1 CUST jarsigner
-storePass "Password123" -keyPass "Password123"
adjava oracle.apps.ad.jri.adjmx -areas $JAVA_TOP/customprod.zip
-outputFile $JAVA_TOP/customprod.jar -jar "DEV_devappsap01" 1 CUST
jarsigner -storePass "Password123" -keyPass "Password123"
adjava oracle.apps.ad.jri.adjmx -areas $JAVA_TOP/customprod.zip -outputFile
$JAVA_TOP/customprod.jar -jar $CONTEXT_NAME 1 CUST jarsigner -storePass
"Password123" -keyPass "Password123"
adjava oracle.apps.ad.jri.adjmx -areas ./customprod.zip -outputFile
./customprod.jar -jar "DEV_devappsap01" 1 CUST jarsigner -storePass
"<pwd>" -keyPass "<pwd>"
LD_LIBRARY_PATH=/appsR122/DEV/fs1/EBSapps/10.1.2/jdk/jre/lib/sparc:/appsR122/DEV/fs1/EBSapps/10.1.2/jdk/jre/lib/sparc/native_threads:/appsR122/DEV/fs1/EBSapps/appl/cz/12.0.0/bin:/appsR122/DEV/fs1/EBSapps/10.1.2/lib32:/appsR122/DEV/fs1/EBSapps/10.1.2/lib:/usr/dt/lib:/usr/openwin/lib:/appsR122/DEV/fs1/EBSapps/10.1.2/jdk/jre/lib/sparc:/appsR122/DEV/fs1/EBSapps/10.1.2/jdk/jre/lib/sparc/native_threads:/appsR122/DEV/fs1/EBSapps/appl/sht/12.0.0/lib:/appsR122/DEV/fs1/EBSapps/10.1.2/jdk/jre/lib/sparc/client
adjava oracle.apps.ad.jri.adjmx -areas $JAVA_TOP/customprod.zip
-outputFile $JAVA_TOP/customprod.jar -jar "DEV_devappsap01" 1 CUST
jarsigner -storePass "Password123" -keyPass "Password123"
Keywords:
Oracle EBS, R12, R12.2.8, Oracle Applications, JarSigner, ASADMIN, ISG,
Integrated SOA Gateway, Web Services, REST, RestFul, $JAVA_TOP
No comments:
Post a Comment