Download the PHP package pantheon-systems/drupal_tls_checker without Composer
On this page you can find all versions of the php package pantheon-systems/drupal_tls_checker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pantheon-systems/drupal_tls_checker
More information about pantheon-systems/drupal_tls_checker
Files in pantheon-systems/drupal_tls_checker
Package drupal_tls_checker
Short Description A scanner for outgoing HTTP requests in Drupal code to check TLS 1.2/1.3 compatibility.
License MIT
Informations about the package drupal_tls_checker
Drupal TLS Compatibility Checker
Stable tag: 1.0.0
Contributors: jazzsequence
A scanner for outgoing HTTP requests in Drupal code to check TLS 1.2/1.3 compatibility.
Installation
Via Composer
Manual Installation
- Download the module from the GitHub repository.
- Extract the downloaded archive.
- Upload the extracted folder to the
modules/customdirectory of your Drupal installation. - Navigate to the Extend page in your Drupal admin panel (
/admin/modules). - Find the TLS Compatibility Checker module in the list and enable it.
- Click the Install button.
Usage
There are two ways to use the TLS Checker: via the Drupal admin or via Drush. The module adds a TLS Compatibility Checker page to /admin/config/development/tls-checker. This page allows you to run a TLS scan on your site against /modules and /themes and all subdirectories (including /contrib and /custom). When the scan is complete, a list of URLs that are not compatible with TLS 1.2 or higher will be displayed.
You can also run the scan using the Drush command described below.
In either case, both passing and failing urls are stored to the database. Subsequent scans will automatically skip the TLS check for URLs that are known to have passed previously (while still testing URLs that were previously failing). This data can be reset at any time either by using the tls-checker:reset command from Drush or in the admin with the "Reset TLS Scan Data" button.
After a scan has been run, if there are any URLs detected that fail the TLS 1.2/1.3 check, an alert will be displayed on the admin page with a list of the failing URLs.
Drush Commands
scan
Runs the TLS checker scan across all PHP files in the given directories (defaults to /modules and /themes). You can specify a directory by passing a --directory flag, e.g.:
Examples
Or, in a Pantheon environment using Terminus:
report
Returns a full report of checked URLs and whether they passed or failed the TLS check. Supports multiple formats (table, JSON, CSV, YAML).
Examples
Or, in a Pantheon environment using Terminus:
reset
Resets the stored passing and failing URLs so the next scan will re-check all discovered URLs.
Examples
How do I know it worked?
If the scan doesn't find anything bad, you should be good to go. If it does, it will list the URLs that it found that weren't compatible. However, if you want to validate that it's working, you can create a new module with the following code: