Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Mikael Korsgaard 1 post 22 karma points
    May 08, 2018 @ 12:38
    Mikael Korsgaard
    1

    TLS1.2 and .NET 4.0 / Umbraco 6

    So I have en older Tea Commerce on an Umbraco 6, and QuickPay just changed so they don't support TLS1.0 ... Breaking our Tea Commerce... Found a fix I just wanted to post here if anyone else gets into trouble...:

    Installed WebActivatorEx and then:

    Created an AssemblyInfo.cs:

    using WebActivatorEx;
    using MyNamespace;
    
    [assembly: PostApplicationStartMethod(typeof(Init), "Run")]
    

    Created an Init Class:

    using System.Net;
    
    namespace MyNamespace
    {
        public static class Init
        {
            public static void Run()
            {
                ServicePointManager.SecurityProtocol = (SecurityProtocolType)192 | (SecurityProtocolType)768 | (SecurityProtocolType)3072;
            }
        }
    }
    
Please Sign in or register to post replies

Write your reply to:

Draft