Skip to content

Security checks: TLS

The certificate this server presents and the TLS versions it accepts. Checked against the APP_URL host when it uses HTTPS, otherwise 127.0.0.1:443.

From V8.5.0, these checks run in php artisan rconfig:security-check and in Security Center. Run only this group with:

Terminal window
cd /var/www/html/rconfig8
php artisan rconfig:security-check --only=tls

Each failing check shows the exact fix for your server, including paths, on the page and in the command output. The sections below explain what each check looks for.

Check Severity Checks that
tls.cert_expiry High The TLS certificate is not about to expire
tls.self_signed Low The certificate is trusted and matches the host name
tls.legacy_protocols Medium TLS 1.0 and 1.1 are refused
tls.weak_key Medium The certificate key is strong enough

The TLS certificate is not about to expire

Section titled “The TLS certificate is not about to expire”

Check ID: tls.cert_expiry · Severity: High

An expired certificate trains users to click through browser warnings and breaks API clients and integrations that verify TLS.

References: NIST SC-17, NIS2 21(2)(h)


The certificate is trusted and matches the host name

Section titled “The certificate is trusted and matches the host name”

Check ID: tls.self_signed · Severity: Low

A self-signed or mismatched certificate still encrypts traffic, but users cannot tell it from an attacker’s, so they learn to accept warnings. Use a certificate from your internal or public CA.

References: NIST SC-17, NIST SC-23


Check ID: tls.legacy_protocols · Severity: Medium

TLS 1.0 and 1.1 are deprecated (RFC 8996) and weaken the encryption that protects passwords and device credentials in transit.

References: NIST SP 800-52r2, NIST SC-8, CIS Apache 2.4 (SSLProtocol), NIS2 21(2)(h)


Check ID: tls.weak_key · Severity: Medium

RSA keys under 2048 bits and EC keys under 256 bits are below current minimums.

References: NIST SP 800-57, NIST SC-12


See Hardening guides for the configuration snippets behind these checks, and NIS2 Article 21 mapping for the controls they give evidence for.