Dear Vinith,
You can use CERTIFICATE_AUTHORITIES flag while doing docker run.
Find more details here - mendix/docker-mendix-buildpack: Build and Run Mendix in Docker
Hope my answer helps. Reach me out for any queries.
Hi Vinith,
To import an SSC certificate into a Mendix application running inside a Docker container on Linux, you need to add the certificate to the Linux trust store inside the container.
Below are the steps:
---
Copy your certificate into the Docker container
Assuming your certificate file is mycert.crt:
docker cp mycert.crt <container_id>:/usr/local/share/ca-certificates/
---
Install the certificate inside the container
Execute into the container:
docker exec -it <container_id> bash
Then run:
update-ca-certificates
This command updates the Linux CA trust store and imports your SSC certificate.
---
Restart the container
After certificate import:
docker restart <container_id>
---
Restart your Mendix app
Your Mendix application will now trust the SSC certificate for outbound calls (REST, SOAP, database connections, etc.)
---
The steps are:
1. Copy certificate into /usr/local/share/ca-certificates/
2. Run update-ca-certificates
3. Restart container
4. Mendix app inside Docker now trusts the certificate