17.3 Installing an SSL Certificate on Microsoft IIS

only for RuBoard - do not distribute or recompile

17.3 Installing an SSL Certificate on Microsoft IIS

Microsoft's Internet Information Services (IIS) is a web service that contains all of the tools necessary to create and deploy certificates for an SSL-enabled web server. For a discussion of how to install IIS and control access to IIS web pages and directories, see Chapter 20.

To create SSL certificates, follow these steps:

  1. Run the Computer Management application from the Administrative Tools folder of the computer's Control Panel.

  2. Select Services and Applications figs/u2192.gif Internet Informaton Services figs/u2192.gif Default Web Site from the tree.

  3. Choose "Properties" from the Action menu.

  4. Select the "Directory Security" tab.

  5. Press the "Server Certificate..." button inside the "Secure communications" box. This will start the "Web Server Certificate Wizard" (see Figure 17-9).

    Figure 17-9. The Web Server Certificate Wizard
    figs/wsc2_1709.gif
  6. Select "Create a new certificate."

  7. Select "Prepare the request now, but send it later."

  8. Choose a name for the certificate and a bit length. Although the default is 512 bits, you should probably choose 1024 bits or more.

  9. Specify an Organization and an Organizational unit.

  10. Specify the domain of your server for the Common name (e.g., www.company.com).

  11. Specify the geographical information.

  12. You will now be prompted for a location in which to save the certificate. The default is c:\certreq.txt.

  13. The certificate request will be created in the file that you specify.

After you create the certificate, you can send it to a certification authority. Alternatively, you can sign it yourself using OpenSSL. Here we sign the certificate request using OpenSSL:

# openssl ca -in /tmp/req.csr -out /tmp/out.cer -policy policy_anything Using configuration from /etc/ssl/openssl.cnf Check that the request matches the signature Signature ok The Subjects Distinguished Name is as follows commonName            :PRINTABLE:'localhost' organizationalUnitName:PRINTABLE:'Secure Server division' organizationName      :PRINTABLE:'Servers Are Us' localityName          :PRINTABLE:'Belmont' stateOrProvinceName   :PRINTABLE:'Massachusetts' countryName           :PRINTABLE:'AU' Certificate is to be certified until Sep 17 04:47:53 2002 GMT (365 days) Sign the certificate? [y/n]:y 1 out of 1 certificate requests certified, commit? [y/n]y Write out database with 1 new entries Data Base Updated #

Once you have a signed certificate, you will use the Web Server Certificate Wizard to import the certificate into IIS:

  1. Press the "Certificate..." button on the "Default Web Site Properties" window to start the Web Server Certificate Wizard.

  2. You will be told that there is a pending certificate request and that the certification authority has not yet responded. You can either delete the pending request or process it; the latter installs the certificate. Select "Process the pending request and install the certificate."

  3. You will be prompted for the path and filename of the certification authority's reponse.

  4. You will be shown a summary of the fields on the certificate. Click "Next."

  5. Click "Finish." The certificate is now imported.

  6. IIS should automatically start up SSL services.

  7. Once the certificate is loaded, you can manage SSL communications by clicking the "Edit..." button on the Default Web Site Properties window. This will bring up the "Secure Communications" window, as shown in Figure 17-10.

Figure 17-10. The Secure Communications window allows you to manage the SSL certificate installed on your copy of IIS
figs/wsc2_1710.gif
only for RuBoard - do not distribute or recompile


Web Security, Privacy & Commerce
Web Security, Privacy and Commerce, 2nd Edition
ISBN: 0596000456
EAN: 2147483647
Year: 2000
Pages: 194

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net