Making API Calls with Oracle Wallet on a Linux System - Google Certificate

This guide explains how to make API calls to websites like Google Maps API and Open Holidays API using an Oracle Wallet setup on a Linux system.

Step 1: Prepare the Docker Volume

  • Navigate to the default volume on the host and create a subdirectory for the wallet:
  • Begin by accessing the Docker volume where you will store the wallet files. Create separate directories for each API you plan to interact with.
 
Bash


  • Download the certificates from the APIs:
  • For each API, you'll need to obtain the SSL certificate. This can be done using the openssl command or manually downloading from the API's website.
  • For Google Maps:
  • Use the following command to download the certificate:
 
Bash


  • Alternatively, you can download it manually from the following link: Google Maps API.
  • Ensure the certificate file has the appropriate permissions:
 
Bash


Access the Docker Container and Install the Certificates

  • Enter the Docker container and navigate to the respective directories:
  • Access the Docker container where Oracle is running. Navigate to the directories where you will create the wallets.
 
Bash


  • Create new wallets for each API:
  • Use the orapki command to create a wallet for each API. This wallet will store the SSL certificates.
 
Bash

  • Add the certificates to the respective wallets:
  • Import the downloaded certificates into the wallets using the orapki command.
 
Bash


Additional Information

For more detailed information on using UTL_HTTP and SSL in Oracle databases, visit Oracle Base.
Additionally, ensure that the necessary network access control lists (ACLs) are configured in Oracle. Execute the following SQL commands as a sysadmin in SQL Developer:
 
SQL

Finally, update the global parameters to include the wallet paths:
 
SQL


 {fullWidth}

Please Select Embedded Mode To Show The Comment System.*

Previous Post Next Post

نموذج الاتصال