Test Modeller Core (Linux) Optional – SSL Certificate Installation

Search Knowledge Base by Keyword

< Back

1 – Use correct docker-compose.yml file

Delete the existing docker-compose.yml file and rename the

docker-compose-fullstack-ssl.yml so that it is called docker-compose.yml

2 – Obtain SSL Certificate

For testing you can create a self-signed SSL certificate.

sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /nginx/server.key -out /nginx/server.crt

It is recommended for production you obtain a signed SSL certificate from a registered issuing authority.

You should have a .crt and a .key file. Place these on the host machine’s local storage. If you have paced them in a directory different than “/nginx”, edit the volumes key in the docker-compose.yml file accordingly – replace these sections with your location.

/nginx/server.crt:/etc/nginx/server.crt

/nginx/server.key:/etc/nginx/server.key

3 – Edit the .env file

Change the following variables in the .env file:

VariableDefaultReplace with
HOST_PROTOCOLhttp://https://
HOST_PORT80443

4 – Start the Test Modeller Services

5 –  Enable TLS v1.2  (Optional)

Configure the server block to enable TLS v1.2. Note TLS v1.2 and below should only be used in development environments.

ssl_ciphers         EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH;

ssl_protocols      TLSv1.2;