Checking / Updating Outbound TLS 1.2 Support

Due to changes in security, it may be necessary to update or migrate a site to use TLS 1.2 for outbound connections.  Most notably for a payment gateway.  Please note this only affects outbound connections and is not related to a SSL certificate that may be installed for the site.  For general information, including testing, find the applicable scripting section below (ASP.NET, Classic ASP, or PHP).  If it's necessary to migrate the site to a newer version of Windows or you require assistance with reviewing TLS 1.2 support, please open a ticket with the Support Department.
 
 
Windows Server Version
 
The version of Windows Server, necessary to check for ASP.NET and Classic ASP support, can be ascertained by reviewing the Server Name in the DiscountASP Control Panel, then matching it against the key below.  The Server Type field in the DiscountASP Control Panel will show whether the site is on Windows Server 2008, 2012, or 2016, but the key below will specify whether it's on 2008 R2 or 2012 R2.
 
 
Server key
 
 
 
ASP.NET
 
There are two requirements for TLS 1.2 support when using ASP.NET.  Framework 4.5 or newer and Windows 2012 R2 or Windows 2016.  For migration assistance to Windows 2012 R2 or Windows 2016, please open a ticket with Support.
 
If a site is using an older Framework, it will need to be updated.  However, only Framework 4.7 will use TLS 1.2 by default.  If a site is using Framework 4.5 or 4.6, bootstrapping code is required to force TLS 1.2.  The following stackoverflow.com article provides an overview of the code update if the Framework version cannot be updated, instead:  https://stackoverflow.com/a/28333370
 
 
Classic ASP
 
For TLS 1.2 support through Classic ASP, the site should be on a Windows 2012 R2 or Windows 2016 server.
 
To test TLS 1.2, the script in zssl.zip may be used:  zssl.zip
 
For migration assistance to Windows 2012 R2 or Windows 2016, please open a ticket with Support.
 
 
PHP / cURL
 
For PHP, TLS 1.2 support is dependent on the version of PHP set for the site.  Which should be set to 5.5 or newer in the DiscountASP Control Panel.
 
DiscountASP Control Panel > IIS Tools > PHP Version (drop-down)
 
To test TLS 1.2, the script in zcurl.zip may be used:  zcurl.zip