Before sign a JAR file we need a keystore. we can create it using the keytool utility. The keytool utility is normally found under the JDK bin directory.
1.1 Navigate the Directory-
C:\>cd C:\Oracle\Middleware\Oracle_FRHome1\jdk\bin
1.2 Generate keystoreC:\Oracle\Middleware\Oracle_FRHome1\jdk\bin>keytool -genkey -alias MediAlias -keyalg RSA -keystore MediStore
Enter keystore password: medipassword
What is your first and last name?
[Unknown]: bishwanath das
What is the name of your organizational unit?
[Unknown]: development
What is the name of your organization?
[Unknown]: medi
What is the name of your City or Locality?
[Unknown]: dhaka
What is the name of your State or Province?
[Unknown]: dhaka
What is the two-letter country code for this unit?
[Unknown]: BD
Is CN=bishwanath das, OU=development, O=medi, L=dhaka, ST=dhaka, C=BD correct?
[no]: yes
Enter key password for < MediAlias>
(RETURN if same as keystore password):
Step-2: sign JAR file(jarsigner)
Once the keystore is created, we can use the jarsigner utility to sign the JAR files. The jarsigner utility is normally found under the JDK bin directory.
C:\Oracle\Middleware\Oracle_FRHome1\jdk\bin>jarsigner -keystore MediStore -storepass medipassword C:\ Oracle\Middleware\Oracle_FRHome1/forms/java/clientinfos.jar MediAlias
Sample
What is the clientinfos.jar ? i couldn't find ?
ReplyDeleteNice Article...
ReplyDeletejarsigner: Certificate chain not found for: Oracle\Middleware\Oracle_FRHome1/forms/java/clientinfos.jar. Oracle\Middleware\Oracle_FRHome1/forms/java/clientinfos.jar must reference a valid KeyStore key entry containing a private key and corresponding public key certificate chain.
ReplyDelete