1 Reply Latest reply: Dec 12, 2012 3:07 PM by Neil S RSS

    OpenScript Record - Keystore Errors

    Neil S
      Hello Most Knowledgeable Ones :-),

      I'm trying to create an ADF Load Script in version 9.1 (browser = IE8).
      All goes well until the request reaches a page where an external payment gateway is called (https too).
      At that point it shows a certificate error & that's as far as it goes.

      It was suggested I export & import/add a CERT from IE. Which I did to
      [installLoc]\OracleATS\OpenScript\jre\bin\keytool -import -file fileName_base64Export.cer -keystore [installLoc]\OracleATS\OpenScript\jre\lib\security\cacerts
      which used the default java password.

      When that gave no improvement, I used sysInternals to see that this keystore is read:
      [installLoc]\OracleATS\OpenScript\openscript_configuration\org.eclipse.osgi\bundles\28\1\.cp\install\keystore

      But any password I try (default java, Oats install admin) is not recognised.

      Would anyone know what the 'default' password is?
      Or have any other suggestions?
      Page loads without issue when not recording (ie in Browser alone).

      Many Thanks,
      Neil
        • 1. Re: OpenScript Record - Keystore Errors
          Neil S
          I also meant to mention 2 things:
          1. There a "Loading of https keystore...." error in the OpenScript logs for the time I encountered the error during Record.
          2. The listing of the Cert file by keytool.
          Here's more info for both:

          1.
          2-12-11 13:34:01 ERROR [main][oracle.oats.scripting.modules.http.proxyRecorder.CertificateVerifier] Loading of https keystore from file failedKeystore was tampered with, or password was incorrect
          java.io.IOException: Keystore was tampered with, or password was incorrect
               at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:771)
               at sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:38)
               at java.security.KeyStore.load(KeyStore.java:1185)
               at oracle.oats.scripting.modules.http.proxyRecorder.CertificateVerifier.<init>(CertificateVerifier.java:91)
               at oracle.oats.scripting.modules.http.proxyRecorder.CertificateVerifier.<clinit>(CertificateVerifier.java:50)
               at oracle.oats.scripting.modules.http.proxyRecorder.ProxyOptionsHelper.configureOptions(ProxyOptionsHelper.java:110)
               at oracle.oats.scripting.modules.http.proxyRecorder.ProxyOptionsHelper.<init>(ProxyOptionsHelper.java:39)
               at oracle.oats.scripting.modules.http.proxyRecorder.HttpBrowserProxyProvider.getBrowserProxy(HttpBrowserProxyProvider.java:21)
               at oracle.oats.scripting.recorders.configurations.SessionLauncher.<init>(SessionLauncher.java:77)
               at oracle.oats.scripting.recorders.actions.RecordActionHandler.start(RecordActionHandler.java:27)
               at oracle.oats.scripting.ui.recorders.actions.RecorderActionDelegate.run(RecorderActionDelegate.java:129)
               at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
               at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:229)
               at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:583)
               at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500)
               at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:452)
               at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
               at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
               at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
               at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
               at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
               at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
               at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
               at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
               at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
               at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
               at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
               at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
               at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
               at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
               at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
               at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
               at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
               at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
               at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
               at java.lang.reflect.Method.invoke(Method.java:597)
               at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
               at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
               at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
               at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
          Caused by: java.security.UnrecoverableKeyException: Password verification failed
               at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:769)
               ... 40 more

          2.
          H:\>E:\OracleATS\OpenScript\jre\bin\keytool -list -keystore E:\OracleATS\OpenScript\openscript_configuration\org.eclipse.osgi\bundles\28\1\.cp\install\keystore
          Enter keystore password:

          ***************** WARNING WARNING WARNING *****************
          * The integrity of the information stored in your keystore *
          * has NOT been verified! In order to verify its integrity, *
          * you must provide your keystore password. *
          ***************** WARNING WARNING WARNING *****************

          Keystore type: JKS
          Keystore provider: SUN

          Your keystore contains 1 entry

          oats-proxy-certificate, 13/03/2012, PrivateKeyEntry,
          [etc]