locked
How to test site locally with TLS 1.0 and 1.1 disabled? RRS feed

  • Question

  • User-1526035670 posted

    Hi

    As per the title, I have a few old websites and we disabled TLS 1.0 and 1.1 protocols on the server which caused some sites to crash. Although i could make the possible config changes (mainly upgrading the .Net version) to get it resolved, there are too many sites for me to go through each site 1 at a time before i finding a fix and implementing it (just in case change the .Net version doesnt fix it).

    Is there a way i could load these sites locally with TLS disabled (perhaps within Visual Studio) and then test to see what happens before making the relevant change to the server's version and then disabling the TLS protocols when all the sites are ready?

    Thanks

    Thursday, March 18, 2021 3:42 PM

All replies

  • User1535942433 posted

    Hi JamieP1,

    Could you show me the error messages you have got?

    Best regards,

    Yijing Sun

    Friday, March 19, 2021 6:30 AM
  • User-1526035670 posted

    Hi

    Each site would have a different error i.e. some sites may complain about the .Net version, some others may have a third party component which might throw an error which i wont know about until i switch off 1,1.2.... So would like a way to test this locally to get a feeling of what might happen?

    Friday, March 19, 2021 10:13 AM
  • User475983607 posted

    It is very simple to disable TLS1.0 and 1.1 on your development system.  Just Google.

    https://www.google.com/search?q=disable+tls+1.0

    Friday, March 19, 2021 10:23 AM
  • User-1526035670 posted

    Hi

    Originally i added the 4 entries (2 for 1.0 and 2 for 1.1) but the site ran as normal locally. The same changes on a server stopped the site from working. The only difference i can tell so far between the server version and local is the server version is https but local isnt.

    Friday, March 19, 2021 3:54 PM
  • User475983607 posted

    JamieP1

    Originally i added the 4 entries (2 for 1.0 and 2 for 1.1) but the site ran as normal locally. The same changes on a server stopped the site from working. The only difference i can tell so far between the server version and local is the server version is https but local isnt.

    Of course it runs locally.  You need to make an external request to SQL server or maybe a web service to test TLS.  TLS is a protocol for encrypted communication between systems and operates at the OS level.   I recommend doing a research so you understand what you're testing.

    https://www.google.com/search?q=waht+is+tls

    .NET Reference.

    https://docs.microsoft.com/en-us/dotnet/framework/network-programming/tls

    Friday, March 19, 2021 4:31 PM
  • User753101303 posted

    Hi,

    Sure, it applies to https only. Try https://www.codeproject.com/Tips/723357/Enabling-SSL-with-IIS-Express-in-Visual-Studio to use https. I would expect hough that you encounter a limited number of errrors. You could also maybe explain which one you have the most for guidance and open a new thread until you gathered suggestions for each one.

    Friday, March 19, 2021 7:15 PM