Go back to the main page

Test for QuickBooks API TLS 1.2 support


Intuit is requiring QBO API connections to be done over TLS 1.2 or greater starting on December 31st, 2017. In this article, I'll show you how to test the 2 main QuickBooks Ruby libraries, quickbooks-ruby and qbo_api.


# Rails console for app you want to test
# FOR QboApi gem.
# 1. instantiate a QboApi object
$ qbo_api_instance.connection(url: 'https://www.ssllabs.com/ssltest/viewMyClient.html').get
# FOR quickbooks-ruby gem
# 1. instantiate a quickbooks-ruby object
$ quickbooks_ruby_instance.service.send(:do_http_get, 'https://www.ssllabs.com/ssltest/viewMyClient.html')
# Search the HTML output using the search string 'protocol_tls1_2' and see if you get a "Yes*"
# e.g. successful fragement => \"protocol_tls1_2\">Yes*</td>\