How to create a new self-signed /etc/exim.cert and /etc/exim.key

If you need to generate a new exim.cert and exim.key files, run:

/usr/bin/openssl req -x509 -newkey rsa:1024 -keyout /etc/exim.key -out /etc/exim.cert -days 9999 -nodes

and answer all questions with information you want the certificate to have. Once done, continue by typing:

chown mail:mail /etc/exim.key
chmod 600 /etc/exim.key
chmod 644 /etc/exim.cert
/etc/init.d/exim restart

Related error message in the /var/log/exim/mainlog:

(SSL_CTX_use_PrivateKey_file file=/etc/exim.key): error:0200100D:system library:fopen:Permission denied
 
exim/exim.key.txt · Last modified: 2010/02/22 06:17 by muscardin
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Please visit Automatic Backlinks to start earning free backlinks Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki