Disable Secure Sockets Layer (IIS 7)

Applies To: Windows 7, Windows Server 2008, Windows Server 2008 R2, Windows Vista

Disable Secure Sockets Layer (SSL) when the content on your server does not have to be protected by a certificate. By default, SSL encryption is disabled for IIS 7.

Prerequisites

For information about the levels at which you can perform this procedure, and the modules, handlers, and permissions that are required to perform this procedure, see Secure Sockets Layer Feature Requirements (IIS 7).

Exceptions to Feature Requirements

  • None

To disable SSL

You can perform this procedure by using the user interface (UI), by running Appcmd.exe commands in a command-line window, by editing configuration files directly, or by writing WMI scripts.

User Interface

To use the UI

  1. Open IIS Manager and navigate to the level you want to manage. For information about opening IIS Manager, see Open IIS Manager (IIS 7). For information about navigating to locations in the UI, see Navigation in IIS Manager (IIS 7).

  2. In Features View, double-click SSL Settings.

    Make sure that you are at the site, application, or directory level; SSL Settings are not available at the server level. To disable SSL at the file level, navigate to the file in Content View and then click Switch to Features View in the Actions pane.

  3. On the SSL Settings page, clear Require SSL.

  4. In the Actions pane, click Apply.

Command Line

To disable SSL, use the following syntax:

appcmd set config "site | URL"/section:access /sslFlags:None /commit:APPHOST

The variable site | URL is the site, application, virtual directory, or file where you want IIS to disable SSL. For example, to disable SSL for the Default Web Site, type the following at the command prompt, and then press ENTER:

appcmd set config "Default Web Site"/section:access /sslFlags:None /commit:APPHOST

To disable SSL for the file iisstart.htm on the Default Web Site, type the following at the command prompt, and then press ENTER:

appcmd set config "https://localhost/iisstart.htm"/section:access /sslFlags:None /commit:APPHOST

Note

When you use Appcmd.exe to configure the access element at the site, application, virtual directory, or file level in IIS 7, you must specify /commit:APPHOST in the command so that configuration changes are made to ApplicationHost.config with an appropriate location tag.

For more information about Appcmd.exe, see Appcmd.exe (IIS 7).

Configuration

The procedure in this topic affects the following configuration elements:

<access> under <security> under <system.webServer>

For more information about IIS 7 configuration, see IIS 7.0: IIS Settings Schema on MSDN.

WMI

Use the following WMI classes, methods, or properties to perform this procedure:

  • AccessSection.SSLFlags property (None flag)

For more information about WMI and IIS, see Windows Management Instrumentation (WMI) in IIS 7. For more information about the classes, methods, or properties associated with this procedure, see the IIS WMI Provider Reference on the MSDN site.

See Also

Concepts

Configuring Secure Sockets Layer in IIS 7 Configuring Server Certificates in IIS 7