Using your own SSL Certificate

Modified on Mon, 22 Sep at 5:56 PM

Many customers would like to replace our server certificates with their own certificates issued with the correct common name and using their company or commercial Certificate Authority (CA). 

 

The paths for the files that you need to overwrite are as defined in /etc/nginx/conf.d/dispatcher.conf within the nginx docker container:

  • /etc/nginx/server.crt
  • /etc/nginx/server.key


Step1: Prepare custom SSL Cert

Copy the custom server.crt and server.key files to the /home/vsts/ctas/ directory.

  • server_cert.crt: crt file for the new certificate
  • server_cert.key: key file for the new certificate


Step2: Update docker compose

Update nginx section of the docker compose, to mount server.crt and server.key         

             


nginx:
    restart: unless-stopped
    networks:
      - onprem
    depends_on:
      - ctasdispatcher
    ---
    # add-on config
    volumes:
      - ./server.crt:/etc/nginx/server.crt
      - ./server.key:/etc/nginx/server.key
    ports:
      - "443:8443"


   

Step3: Restart containers             

cd /home/vsts/ctas/
docker compose -f docker-compose.yaml down
docker compose -f docker-compose.yaml up -d


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article