Skip to content

How to Test TLS version used for PHP

Advertisement

The howsmyssl.com website provides you the option to test the TLS version used by your browser or PHP script. Put the below PHP script on your website document root and access it in a web browser. This will return the TLS version used by your script to connect the remote application.

I have written this in a tls_test.php script and then accessed in a web browser. The result shows the PHP is using TLS 1.2. If your application is using lower version by default, then you can force PHP to use TLS 1.2 with cURL using this tutorial.

Test PHP TLS Version

Rahul

I, Rahul Kumar am the founder and chief editor of TecAdmin.net. I am a Red Hat Certified Engineer (RHCE) and working as an IT professional since 2009..

1 Comment

Leave a Reply

Your email address will not be published. Required fields are marked *


Back to top