Sunday, October 2, 2016

Oracle Forms 11g - JRE Security Warning: Block potentially unsafe components from being run? The application contains both signed and unsigned code. Contact the application vendor to ensure that it has not been tampered with.

Oracle Forms 11g - Security Warning:
Block potentially unsage components from being run?
Application: oracle.forms.engine.Main

Java has discovered application components that could indicate a security concern. Contact the application vendor to ensure that it has not been tampered with.

The application contains both signed and unsigned code.





Warning Reasons: When the jar file is NOT signed, then the following warning message will appear at time of Oracle 11g forms RUN.

Solution: Properly sign the JAR files.

Signing JAR file Procedure:
Step-1: Create Keystore (keytool)
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 keystore
C:\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 Implementation:



1 comment: