Windows Server could not create SSL/TLS secure channel error

Vladimir Popescu
by Vladimir Popescu
Windows & Software Expert
0 Comments
Download PDF
Affiliate Disclosure

keyboard coseup - Windows server could not create a ssl tls secure channel

If you encountered the error Windows server could not create SSL/TLS secure channel when trying to show a document in WebView on Office Web App Server, you are not the only one experiencing this issue.

A great number of users have encountered the same issue. Some users encountered the same error when a request is being made to an https endpoint on Cloudflare.

Ad

This issue can be extremely frustrating, and it will not allow you to create an SSL/TLS secure channel, so your server setup can not be completed accordingly.

In this article, we will explore some of the best-proven methods to try out. Please follow the methods described in this article carefully in order to avoid causing issues.


Here’s what to do to fix the Windows server could not create SSL/TLS secure channel error

1. Set ServicePoint to TLS 1.2

laptop on table front view - Windows server could not create a ssl/tls secure channel
Some users have reported that setting the ServicePoint to TLS 1.2 solved their issue. Follow these steps to do so:

  1. Find the global.asax file inside the root of your site.
  2. Right-click it -> select View code.
  3. You should be able to find an Application_Start method inside the file mentioned above.
  4. Add these lines to the code to force TLS 1.2:

    namespace YourApplication
    {
        public class WebApiApplication : System.Web.HttpApplication
        {
            protected void Application_Start()
            {
                //**Add these lines**
                if (ServicePointManager.SecurityProtocol.HasFlag(SecurityProtocolType.Tls12) == false)
                {
                    ServicePointManager.SecurityProtocol = ServicePointManager.SecurityProtocol | SecurityProtocolType.Tls12;
                }
                //**Add these lines**
    
                AreaRegistration.RegisterAllAreas();
                GlobalConfiguration.Configure(WebApiConfig.Register);
                FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
                RouteConfig.RegisterRoutes(RouteTable.Routes);
                BundleConfig.RegisterBundles(BundleTable.Bundles);
            }
        }
    }

2. Download the Security Advisor update manually

  1. Visit this official Microsoft webpage.Security advisor update -windows server could not create ssl/tls secure channel
  2. Scroll down to the bottom of the page -> download the installer that corresponds to the version of Windows you’re running.
  3. Install it to your PC and check to see if the issue persists. If it does, please try the next method.

Windows Server 2008 and 2008 R2 end of support coming in July


3. Enable SSL3 and TLS and add TLS 1.1 and TLS 1.2 inside the Registry Editor

cup of coffee with laptop - windows server could not create a ssl tls secure channel
To enable SSL3 and TLS follow these steps:

  1. Access the App Server Instances -> select the server by using the left pane.
  2. Click on HTTP Server and HTTP Server Listeners inside the left side of your screen.
  3. Select the required HTTP listener.
  4. Under the section SSL/TLS settings -> activate the options you require.

To add TLS 1.1 and TLS 1.2:

  1. Press Win+R keys on your keyboard -> type in Regedit -> press Enter.
  2. Navigate to the following location:
    • HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v4.0.30319.
  3. Inside the right-side pane -> right click -> create new DWORD registry value.
  4. Set the name to SchUseStrongCrypto, and set the value to 1.
  5. Restart IIS (Internet Information Services).

Conclusion

We hope that following the methods mentioned above have helped you fix the error Windows server could not create SSL/TLS secure channel.

We would love to know if this guide helped you. Please feel free to let us know if it did, or if you have any suggestions, by leaving a comment under this article.

 

Ad
Ad
Was this page helpful?
Thanks for letting us know! You can also help us by leaving a review on MyWOT or Trustpillot.
Get the most from your tech with our daily tips
Tell us why!