Skip to content
Snippets Groups Projects
Commit da310455 authored by Pierre Ozoux's avatar Pierre Ozoux
Browse files

Creates a proper cert for mail

parent cdee9b39
No related branches found
No related tags found
No related merge requests found
#!/bin/bash -eux
mkdir -p /data/domains/mail/dovecot
mkdir -p /data/domains/mail/TLS
mkdir -p /data/domains/mail/TLS/
mkdir -p /data/domains/mail/static/www-content
mkdir -p /data/runtime/domains/mail/mysql/db_files
mkdir -p /data/domains/mail/mysql
......@@ -22,7 +22,7 @@ openssl x509 -req -days 365 \
-in /data/domains/mail/TLS/ssl_cert_sign_req.csr -signkey /data/domains/mail/TLS/ssl_private_key.pem -out /data/domains/mail/TLS/ssl_certificate.pem
openssl dhparam -out /data/domains/mail/TLS/dh2048.pem 2048
cp /data/domains/mail/TLS/ssl_certificate.pem /data/domains/mail/TLS/mail.pem
cat /data/domains/mail/TLS/ssl_certificate.pem /data/domains/mail/TLS/ssl_private_key.pem > /data/domains/mail/TLS/mail.pem
systemctl enable dovecot
systemctl enable postfix
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment