SSL (Secure Sockets Layer ) Microsoft® Internet Information server offers a protocol for providing data security layered between its service protocols (HTTP) and TCP/IP. This security protocol, called Secure Sockets Layer (SSL), provides data encryption, server authentication, and message integrity for a TCP/IP connection.
About SSL SSL provides a security "handshake" that is used to initiate the TCP/IP connection. This handshake results in the client and server agreeing on the level of security they will use and fulfills any authentication requirements for the connection. Thereafter, SSL's only role is to encrypt and decrypt the byte stream of the application protocol being used (for example, HTTP). This means that all the information in both the HTTP request and the HTTP response are fully encrypted, including the URL the client is requesting, any submitted form contents (such as credit card numbers), any HTTP access authorization information (usernames and passwords), and all the data returned from the server to the client.
Generating a Key Pair Before starting you must have decided on the server's Distinguished Name. See Microsoft Internet Information Server Help specifying a Distinguished Name. The following example creates the key file keypair.key and the certificate request file named Request.req for a server named www.mycompany.com: The files are generated in the current directory, C:\Inetsrv\Server. c:\inetsrv\server>keygen MyPassword1 keypair.key request.req "C=US,S=WASHINGTON,L=REDMOND,O=EXAMPLE,OU=TOUR,CN=www.mycompany.com" PCT/SSL Key generation utility, Version 1.0 Copyright (c) 1995 Microsoft Corporation Generating key pair of length 1024 bits... Completed. Send the generated request file, Request.req, to your Certificate Authority for signing.The argument in quotes in the keygen.exe command line ("C=US, S=Washington...") specifies several fields for the certificate request related to your organization and server. NOTE: Do not use commas in any field. Commas are interpreted as the end of that field and will generate an invalid request without warning. If you run Keygen.exe more than once, note that it doesn't overwrite existing files; instead, it returns an error 80, meaning that the file already exists.
Acquiring a Certificate
Applying Your Certificate to Your Server Copy and save the text to a file -- using a tool such as Notepad -- giving it a name you can remember (for example, certif.txt).-----BEGIN CERTIFICATE----- JIEBSDSCEXoCHQEwLQMJSoZILvoNVQECSQAwcSETMRkOAMUTBhMuVrMmIoAnBdNV BAoTF1JTQSBEYXRhIFNlY3VyaXR5LCBJbmMuMRwwGgYDVQQLExNQZXJzb25hIENl cnRpZmljYXRlMSQwIgYDVQQDExtPcGVuIE1hcmtldCBUZXN0IFNlcnZlciAxMTAw HhcNOTUwNzE5MjAyNzMwWhcNOTYwNTE0MjAyOTEwWjBzMQswCQYDVQQGEwJVUzEg MB4GA1UEChMXUlNBIERhdGEgU2VjdXJpdHksIEluYy4xHDAaBgNVBAsTE1BlcnNv bmEgQ2VydGlmaWNhdGUxJDAiBgNVBAMTG09wZW4gTWFya2V0IFRlc3QgU2VydmVy IDExMDBcMA0GCSqGSIb3DQEBAQUAA0sAMEgCQQDU/7lrgR6vkVNX40BAq1poGdSm GkD1iN3sEPfSTGxNJXY58XH3JoZ4nrF7mIfvpghNi1taYimvhbBPNqYe4yLPAgMB AAEwDQYJKoZIhvcNAQECBQADQQBqyCpws9EaAjKKAefuNP+z+8NY8khckgyHN2LL pfhv+iP8m+bF66HNDUlFz8ZrVOu3WQapgLPV90kIskNKXX3a ------END CERTIFICATE----- Use Setkey.exe (included in your Microsoft Internet Information Server installation) to install your signed certificate on the server, for example: Note: If you do not specify an IP address, the same certificate will be applied to all virtual servers created on the system. If you are hosting multiple sites on a single server, you can specify that the certificate only be used for a given IP address as follows:setkey MyPassword1 keypair.key certif.txt setkey MyPassword1 keypair.key certif.txt 10.191.28.45
Configuring a Directory to Require SSL
|