Importing certificates from a local JSON file

If your internal or third party certificates are not stored in a remote configuration management center such as Vault, then we can also define the certificates locally in a JSON file. We can create a custom Docker image and copy the JSON file into the /SETUP/certs/custom directory of the Docker image.

Importing the local certificates from the JSON file into your running Docker container are handled by the /SETUP/bin/updateLocaCerts.sh script included in all the IBM provided Docker containers. The updateLocalCerts.sh script looks in the /SETUP/certs/custom directory and loads all JSON files. Here is an example of a certificate stored in JSON format and the mandatory name-value pairs.

How do I load the JSON files to the /SETUP/certs/custom directory?


Related reference
Docker container start up logic
Docker container start up configuration parameters
Environment data structure in Consul/Vault