SSL and security headers checker
Review a domain's certificate, TLS protocol, HTTPS redirect and security headers. The result includes the configuration needed to correct each gap.
Evaluated elements
The grade combines certificate validity, the negotiated protocol, the HTTPS redirect and six security headers. The request is equivalent to a site visit.
Element
Expected value
Risk mitigated
Certificate
Valid with more than 14 days left
Service disruption and browser warnings
Protocol
TLS 1.2 or TLS 1.3
Traffic interception
Strict-Transport-Security
Present
Downgrade to HTTP
Content-Security-Policy
Present
Script injection
X-Frame-Options
Present
Clickjacking
X-Content-Type-Options
nosniff
Incorrect content interpretation
Recommended configuration
Enforce HTTPS
Redirect all HTTP traffic to HTTPS.
nginx
return 301 https://$host$request_uri;Renew the certificate automatically
Automate renewal to prevent expiry.
Certbot
sudo certbot renew --dry-runLimit TLS versions
Disable TLS 1.0 and TLS 1.1.
nginx
ssl_protocols TLSv1.2 TLSv1.3;Hide the server version
Do not publish software versions in headers.
nginx
server_tokens off;php.ini
expose_php = Off
Frequently asked questions
- What does the grade mean?
- It summarises the state of the certificate, protocol, redirect and headers. An invalid or expired certificate always results in an F.
- Does an A grade mean the site is secure?
- No. It indicates correct transport and header configuration. It does not assess application vulnerabilities.
- Is the Content-Security-Policy header necessary?
- It is the header that most reduces the impact of script injection. The recommended policy must be adapted to each application and tested before production.