Linux - Docker Deployment - SSC Certificate

0
Hi Team, I need to import an SSC certificate into one of our production applications. The application is running in a Docker container on a Linux server. Could you please guide me through the process? Thank you.
asked
2 answers
0

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.

answered
0

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

answered