Thursday 28 July 2016

How to import SSL certificate in Jdeveloper KeyStore

In order to consume Secured SOAP services (https) we need to import Certificates in Jdeveloper KeyStore.

1) Get the certificate from WSDL by opening it in any preferred browser .



2) Click on "Export" & save the certificate as .crt file.


3) Now move the saved certificate to the jdeveloper keystore(cacerts) using the command below.

keytool -keystore C:\Oracle\Middleware\jdk160_29\jre\lib\security\cacerts -importcert -alias erp_verizon_cacert1 -file C:\Users\Vikas\Desktop\VeriSignClass3PublicPrimaryCertificationAuthority-G5.crt

keytool -keystore C:\Oracle\Middleware\jdk160_29\jre\lib\security\cacerts -importcert -alias erp_symantec_cacert1 -file C:\Users\Vikas\Desktop\SymantecClass3SecureServerCA-G4.crt

keytool -keystore C:\Oracle\Middleware\jdk160_29\jre\lib\security\cacerts -importcert -alias erp_ehiw_test_root1 -file C:\Users\Vikas\Desktop\rootca.crt

4) Cacerts location is being referred in ADF client web proxy project as TrustStore.
 private final String trustStore = "C:\\Oracle\\Middleware\\jdk160_29\\jre\\lib\\security\\cacerts";

Monday 11 July 2016

Change the Date Format at global level for ADF Application

Specifying Global data & format for application .

To change the date format of your application, without necessarily affecting other locale settings like Language(localized text) ,or to established a standard global date format across different locales/countries, define the <formatting-locale> element of the trinidad-config.xml as illustrated below: 


<?xml version="1.0" encoding="windows-1252"?>
<trinidad-config xmlns="http://myfaces.apache.org/trinidad/config">
  <formatting-locale>en-GB</formatting-locale>
</trinidad-config>


<?xml version="1.0" encoding="windows-1252"?>
<trinidad-config xmlns="http://myfaces.apache.org/trinidad/config">
  <formatting-locale>#{userSession.formattingLocale}</formatting-locale>
</trinidad-config>

Refer the blog below ..



Saturday 9 July 2016

Frame Busting in web.xml (Run ADF application inside EBS)

In order to invoke ADF application from OAF  rich container frame inside EBS, set  "org.apache.myfaces.trinidad.security.FRAME_BUSTING" to "never".