Follow the steps below to import and configure certificates for an on-premise setup.
Step 1: Map the Certificates Directory in the Docker Command
Update the Docker command to map the directory containing the certificates to the required path in the container. Use the following example as a reference: /home/ubuntu//certs:/opt/gamma/certsStep 2: Set the Environment Variable
Add the following environment variable to the Docker command to define the root certificates path: ROOT_CERTS_PATH=/opt/gamma/certsStep 3: Export the Certificate from the On-Premise Webpage
-
- Access the On-Premise Webpage: Open the on-premise setup webpage in your browser.
-
- View Site Details: Click on the padlock icon in the browser’s address bar and select Site Details.
-
- Open Certificate Details: Navigate to Certificate Details and go to the Details tab.
-
- Export the Certificate:
Click the Export button, give the certificate a name, and save it. The file will be downloaded as a
.pem
file.
- Export the Certificate:
Click the Export button, give the certificate a name, and save it. The file will be downloaded as a
-
- Step 4: Copy the PEM File to the Mapped Directory
-
- Locate the Downloaded PEM File:
The
.pem
file will be saved in your local system’s default downloads folder or the location you specified.
- Locate the Downloaded PEM File:
The
-
- Move the PEM File to the Mapped Location:
Copy the downloaded
.pem
file to the mapped directory for certificates:
- Move the PEM File to the Mapped Location:
Copy the downloaded
certs
folder has the appropriate read/write permissions to be accessed by the container.