Dockerfile for PKI

This commit is contained in:
nemunaire 2015-01-13 18:08:22 +01:00 committed by Nemunaire
commit 34f3747a3b
2 changed files with 52 additions and 0 deletions

25
pki/Dockerfile Normal file
View file

@ -0,0 +1,25 @@
FROM debian:wheezy
MAINTAINER Pierre-Olivier Mercier <nemunaire@nemunai.re>
# Install packages ####################################################
RUN apt-get -y update && \
apt-get install -y \
pwgen \
openssl \
&& \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Copying files #######################################################
ADD CA.sh openssl.cnf /var/www/fic-server/pki/
# ENVIRONNEMENT #######################################################
VOLUME ["/var/www/fic-server/PKI"]
WORKDIR /var/www/fic-server/pki
CMD bash ./CA.sh -newca && \
bash ./CA.sh -newserver && \
bash ./CA.sh -gencrl