TLS 1.2 with Classic ASP

Looking at Twillio docs Using Twilio with Classic ASP and VBScript we implanted Twillio SMS API

We encountered the following error message:

Invalid TLS version
Upgrade Required

The TLS versions on the server appreared to be causing the error TLS 1.0, TLS 1.1 and TLS 2.0

We used to get the current TLS Configuration.

The results showed TLS 1.0 and TLS 1.1 where enabled. This was causing the issue as we need TLS 1.0 and TLS 1.1 to be removed.

Using IISCrypto Tool we updated the Registry Files to update the TLS settings




We ran another test using and the results showed TLS 1.0 and TLS1.1 where no longer available.


After we applied these changes and re-booted the server, the Twillio SMS messages where sent successfully.



However, the SQL Connection String began to break and the Classic ASP website where down.

The SSL Connection was using “SQL Connection” ODBC driver.

We need to update to the latest ODBC to the lastest version which supports TLS 1.2  [Microsoft® ODBC Driver 13.1 for SQL Server]




Then we need to update the connection string to use the current ODBC SQL 13 driver



Now everything is working!

How to create a Class and Objects in Classic ASP

Creating Objects in programming is one the best ways to have code that is easily maintainable. With new Classic ASP clients, I have found creating Classes and Objects is a very good way to begin refactoring legacy code.

Class trip

    public arrive_date
    public depart_date

End Class

Here we have created a Class trip with 2 properties arrive_date and depart_date. Now, when we need to access the arrival date, you can access the values as


Before we can access or use the trip Class, we need to create a new instance of a class. The newly instantiated trip Class, which is now an object with the properties, that we can use.


Class trip

    public arrive_date
    public depart_date

End Class

dim objTrip
set objTrip = new trip

objTrip.arrive_date = '02/11/2017'
objTrip.depart_date = '02/16/2017'

Now that we have created a new instance of our trip and assigned values to each property, we can write some simple HTML to retrieve the values


I will be arriving on <%=objTrip .arrive_date%> and leaving on <%=objTrip .depart_date%>



If you are a looking for Classic ASP Experts or upgrading to .NET from Classic ASP , give us a call.