to enable security for jar file we need to sign it using the following step
1. using dos command do the
following : cmd> keytool -genkey -alias keystore01 -keyalg RSA -keystore mypassword
where
C:\Oracle\midtierhome is the oracle home
Enter keystore
password: mypassword
What is your first and
last name?
[Unknown]:
Joe Bloggs
What is the name of your
organizational unit?
[Unknown]:
My Department
What is the name of your
organization?
[Unknown]:
My Company
What is the name of your
City or Locality?
[Unknown]:
My City
What is the name of your
State or Province?
[Unknown]:
My State
What is the two-letter
country code for this unit?
[Unknown]:
UK
Is CN=Joe Bloggs, OU=My
Department, O=My Company, L=My City, ST=My State, C=UK correct?
[no]:
yes
Enter key password for
<myapp>
(RETURN if same as keystore password):
2. then use the keystore to
sign the jar file by using command line run this:
C:\Oracle\midtierhome\jdk\bin\jarsigner
-keystore keystore01 -storepass mypassword
C:\Oracle\midtierhome\forms\java\hl_icons.jar keystore01
No comments:
Post a Comment