/etc/ssl/misc/CA.pl -newca
openssl req -new -nodes -keyout host-key.pem -out host-req.pem -days 1024
openssl ca -out host-cert.pem -infiles host-req.pem
mkdir /etc/postfix/ssl
cp demoCA/cacert.pem host-key.pem host-cert.pem /etc/postfix/ssl
chmod 644 /etc/postfix/ssl/host-cert.pem /etc/postfix/ssl/cacert.pem
chmod 400 /etc/postfix/ssl/host-key.pem
r