198

Setting Up SSL for Mail Service

Mail service requires some configuration to provide Secure Sockets Layer (SSL) connections automatically. The basic steps are as follows:

ÂGenerate a Certificate Signing Request (CSR) and create a keychain.

ÂObtain an SSL certificate from an issuing authority.

ÂImport the SSL certificate into the keychain.

ÂCreate a password file.

Generating a CSR and Creating a Keychain

To begin configuring mail service for SSL connections, you generate a CSR and create a keychain by using the certtool tool. A CSR is a file that provides information needed to issue an SSL certificate.

1Log in to the server as root.

2In the Terminal application, enter the following two commands:

$ cd /private/var/root/Library/Keychains/ $ /usr/bin/certtool r csr.txt k=certkc c

This use of the certtool tool begins an interactive process that generates a CSR in the file csr.txt and creates a keychain named certkc.

3In the New Keychain Passphrase dialog that appears, enter a password for the keychain you’re creating, enter the password a second time to verify it, and click OK.

Remember this password, because later you must supply it again.

4When “Enter key and certificate label:” appears in the Terminal window, enter a one- word key, a blank space, and a one-word certificate label, and then press Return.

For example, you could enter your organization’s name as the key and mailservice as the certificate label.

5Enter r when prompted to select a key algorithm, and then press Return.

Please specify parameters for the key pair you will generate.

rRSA d DSA f FEE

Select key algorithm by letter:

6Enter a key size at the next prompt, and then press Return.

Valid key sizes for RSA are 512..2048; default is 512

Enter key size in bits or CR for default:

Larger key sizes are more secure, but require more processing time on your server. Key sizes smaller than 1024 aren’t accepted by some certificate-issuing authorities.

7Enter y when prompted to confirm the algorithm and key size, and then press Return.

You have selected algorithm RSA, key size (size entered above) bits. OK (y/anything)?

Chapter 12 Working with the Mail Service

Page 198
Image 198
Apple Mac OS X Server manual Setting Up SSL for Mail Service, Generating a CSR and Creating a Keychain