From f52bd9b65827ebb57cc6a567562cb0984b3a7bb8 Mon Sep 17 00:00:00 2001 From: yohan <783b8c87@scimetis.net> Date: Mon, 15 Jul 2019 23:33:20 +0200 Subject: [PATCH] Fix SSL conf. --- Dockerfile | 4 ++++ dovecot-openssl.cnf | 23 +++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 dovecot-openssl.cnf diff --git a/Dockerfile b/Dockerfile index 8be42bd..933d14b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,6 +15,10 @@ COPY 10-auth.conf /etc/dovecot/conf.d/ COPY 10-ssl.conf /etc/dovecot/conf.d/ #COPY 15-lda.conf /etc/dovecot/conf.d/ COPY 20-lmtp.conf /etc/dovecot/conf.d/ +COPY dovecot-openssl.cnf /root/ +RUN mv dovecot-openssl.cnf/mkcert.sh /root/ +RUN chmod +X /root/mkcert.sh +RUN cd /root; ./mkcert.sh #COPY users /etc/dovecot/ RUN mkdir /home/yohan RUN chown -R 1000:1000 /home/yohan diff --git a/dovecot-openssl.cnf b/dovecot-openssl.cnf new file mode 100644 index 0000000..f096eac --- /dev/null +++ b/dovecot-openssl.cnf @@ -0,0 +1,23 @@ +# +# SSLeay configuration file for Dovecot. +# + +RANDFILE = /dev/urandom + +[ req ] +default_bits = 2048 +default_keyfile = privkey.pem +distinguished_name = req_distinguished_name +prompt = no +policy = policy_anything +req_extensions = v3_req +x509_extensions = v3_req + +[ req_distinguished_name ] +organizationName = scimetis.net +organizationalUnitName = @commonName@ +commonName = @commonName@ +emailAddress = @emailAddress@ + +[ v3_req ] +basicConstraints = CA:FALSE