Answer all of the questions to complete the process.
To create a self-signed SSL certificate for POP, change to the
/usr/share/ssl/certs/
directory, and type the following commands as root:
rm -f ipop3d.pem make ipop3d.pem
Again, answer all of the questions to complete the process.
Important
Please be sure to remove the default
imapd.pem
and
ipop3d.pem
files before
issuing each
make
command.
Once finished, execute the
/sbin/service xinetd restart
command to restart the
xinetd
daemon which controls
imapd
and
ipop3d
.
Alternatively, the
stunnel
command can be used as an SSL encryption wrapper around the
standard, non-secure daemons,
imapd
or
pop3d
.
The
stunnel
program uses external OpenSSL libraries included with Red Hat Enterprise Linux
to provide strong cryptography and protect the connections. It is best to apply to a CA to obtain
an SSL certificate, but it is also possible to create a self-signed certificate.
To create a self-signed SSL certificate, change to the
/usr/share/ssl/certs/
directory, and
type the following command:
make stunnel.pem
Again, answer all of the questions to complete the process.
Once the certificate is generated, it is possible to use the
stunnel
command to start the
imapd
mail daemon using the following command:
/usr/sbin/stunnel -d 993 -l /usr/sbin/imapd imapd
Once this command is issued, it is possible to open an IMAP email client and connect to the
email server using SSL encryption.
To start the
pop3d
using the
stunnel
command, type the following command:
/usr/sbin/stunnel -d 995 -l /usr/sbin/pop3d pop3d
Securing Communication
209
Summary of Contents for ENTERPRISE LINUX 4.5.0 -
Page 1: ...Red Hat Enterprise Linux 4 5 0 4 5 0 Reference Guide ISBN N A Publication date ...
Page 2: ...Red Hat Enterprise Linux 4 5 0 ...
Page 4: ...Red Hat Enterprise Linux 4 5 0 ...
Page 24: ...xxiv ...
Page 26: ......
Page 36: ...12 ...
Page 72: ...48 ...
Page 112: ...88 ...
Page 122: ...98 ...
Page 140: ...116 ...
Page 142: ......
Page 300: ...276 ...
Page 318: ...294 ...
Page 320: ......
Page 332: ...308 ...
Page 350: ...326 ...
Page 378: ...354 ...
Page 388: ...364 ...
Page 394: ...370 ...
Page 395: ...Part IV Appendixes ...
Page 396: ......