3

i have gone through a couple of tutorials on how to set up postfix on ubuntu with support for my ssl certificate:

but neither of them mention what i am trying to do, so maybe i'm missing something.

my certificate file requires a password (at least it does when i start apache using this same certificate), however, at no stage do i enter this certificate's password when starting up or configuring postfix.

how would i start up or configure postfix with the password required to load the certificate?

1 Answer 1

5

the postfix configuration file is located in /etc/postfix/main.cf. the lines within this file which deal with tls are:

smtpd_tls_CAfile = /etc/ssl/mydomain.com.root.ca.pem
smtpd_tls_cert_file = /etc/ssl/certs/mydomain.com.crt
smtpd_tls_key_file = /etc/ssl/private/mydomain.com.key.unencrypted

none of these files require a password. note that the unencrypted key file may be generated from an encrypted key file (ie a key file that does have a password) using the command:

openssl rsa -in /etc/ssl/mydomain.com.key.encrypted -out /etc/ssl/mydomain.com.key.unencrypted

from everything i have read, i don't think it is possible to pass the encrypted key file straight to postfix - i think it has to be an unencrypted key file that is passed in.

1
  • This worked for Red Hat 7 as well Jul 18, 2016 at 0:49

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .