Initial commit
This commit is contained in:
12
nginx-unity/ssl/Dockerfile
Normal file
12
nginx-unity/ssl/Dockerfile
Normal file
@@ -0,0 +1,12 @@
|
||||
FROM docker.dended.keenetic.pro/nginx-unit:latest
|
||||
|
||||
RUN apk add --no-cache openssl
|
||||
|
||||
RUN openssl req -x509 -nodes -days 365 \
|
||||
-subj "/C=CA/ST=QC/O=Company Inc/CN=example.com" \
|
||||
-newkey rsa:2048 -keyout mycert.key \
|
||||
-out mycert.pem -outform=PEM
|
||||
RUN mkdir /var/lib/unit/certs && \
|
||||
cat mycert.pem mycert.key > /var/lib/unit/certs/bundle && \
|
||||
rm mycert.pem mycert.key
|
||||
|
||||
Reference in New Issue
Block a user