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.
- 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:
- Alternatively, you can download it manually from the following link: Google Maps API.
- Ensure the certificate file has the appropriate permissions:
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.
- Create new wallets for each API:
- Use the
orapki
command to create a wallet for each API. This wallet will store the SSL certificates.
- Add the certificates to the respective wallets:
- Import the downloaded certificates into the wallets using the
orapki
command.
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:
Finally, update the global parameters to include the wallet paths:
{fullWidth}