4 lines
254 B
Docker
4 lines
254 B
Docker
|
FROM nginx:alpine
|
||
|
RUN apk add openssl
|
||
|
RUN openssl req -x509 -nodes -days 365 -subj "/C=CA/ST=QC/O=Company, Inc./CN=mydomain.com" -addext "subjectAltName=DNS:mydomain.com" -newkey rsa:2048 -keyout /etc/ssl/private/nginx.key -out /etc/ssl/certs/nginx.crt
|