Thursday, November 21, 2019

Configure the JDeveloper Keystore to Access an Oracle SaaS Application SSL RESTful Web Service

In the following steps, configure the Oracle Sales Cloud SSL Certificate in Oracle JDeveloper.
  1. Sign in to your Oracle Cloud service.
  2. In a web browser, go to a RESTful API resource URL of your Oracle Sales Cloud instance. For example, to access the Opportunities resource, open:
    https://my-crm-server:crm-port/salesApi/resources/latest/opportunities/
  3. Click the SSL icon that appears in your browser navigation bar. For example, in Firefox it appears as a Lock icon. Click More information .
  4. In the Security tab, click View Certificate, and then click the Details Tab.
  5. Click Export. Save the file with the .crt extension in your preferred location.
  6. In Oracle JDeveloper, click the Tools menu, and then select Preferences.
  7. Click Credentials and locate the Client Trusted Certificate Keystore file.
  8. Open a command prompt with administrative privileges (in Windows, run cmd and then press control+shift enter).
  9. Navigate to the /bin sub-folder in your JRE installation folder, and run the following command:
  10. Where YOUR_FILE_NAME is an arbitrary name you choose, PATH_TO_THE_CERT_FILE_YOU_DOWNLOADED is the path to the Certificate you downloaded in step 4, and PATH_TO_THE_JDEVELOPER_KEYSTORE is the path to the JDeveloper Keystore from step 6. DemoTrustKeyStorePassPhrase is the textual passphrase for the default DemoTrust.jks (client trusted certificate keystore).
  11. The Oracle Sales Cloud Certificate is added to your local development environment, and it can be used to develop and test your Java application locally.

No comments:

Post a Comment