Nov. 11, 2023, 2:26 a.m. | Norman

DEV Community dev.to

1) Pull nginx image

docker image pull nginx


2) Create nginx container

docker container run -d -p 443:443 --name mynginx nginx


3) Enter the container

docker container exec -it mynginx bash


4) Create the private key and certificate

mkdir /etc/nginx/ssl


private key

openssl genrsa -out /etc/nginx/ssl/server.key 2048


Certificate Signing Request (CSR)

you can skip through by pressing the Enter key for each prompt

openssl req -new -key /etc/nginx/ssl/server.key -out /etc/nginx/ssl/server.csr


SSL server certificate (CRT)

openssl x509 -days 3650 -req -signkey …

bash docker docker container etc exec html image index nginx server ssl web

AI Research Scientist

@ Vara | Berlin, Germany and Remote

Data Architect

@ University of Texas at Austin | Austin, TX

Data ETL Engineer

@ University of Texas at Austin | Austin, TX

Lead GNSS Data Scientist

@ Lurra Systems | Melbourne

Senior Machine Learning Engineer (MLOps)

@ Promaton | Remote, Europe

Senior Software Engineer, Generative AI (C++)

@ SoundHound Inc. | Toronto, Canada