HTTPS troubleshooting
Published
Updated
🔒
Debug SSL certificate issues.
A certificate warning on fortrabbit usually means the domain does not point to fortrabbit yet. A mixed content warning means the page loads resources over http.
Check the certificate in the browser
Open the domain with https://, click the lock icon or the site settings icon in the address bar, and open the certificate details. They show which domains the certificate covers and when it expires. See HTTPS for how certificates work on fortrabbit.
Certificate warning
A warning such as NET::ERR_CERT_COMMON_NAME_INVALID means the certificate does not cover the domain, often because it shows *.frbit.app instead.
- DNS not pointing to fortrabbit yet: fortrabbit issues a certificate only for a domain routed to it. Check the domain in the dashboard and the DNS with dig.
- New domain: the certificate follows shortly after the DNS points to fortrabbit.
- CAA record: a CAA record that does not allow Let's Encrypt blocks the certificate, see HTTPS.
Mixed content warning
The page loads over HTTPS but requests a script, style, image, font or API call over http://. Browsers block such requests:
Mixed Content: The page at 'https://example.com' was loaded over HTTPS, but requested an insecure resource 'http://example.com/app.js'. This request has been blocked; the content must be served over HTTPS.
Search the templates, the CSS and the database content for http:// and change the URLs to https://. In a CMS, check the site URL setting first, see the Craft CMS domain setup for an example.
Redirect HTTP to HTTPS
Send all requests to HTTPS with a redirect in .htaccess.
Certificate verify failed in PHP
An error like SSL certificate problem: unable to get local issuer certificate or certificate verify failed comes from an outgoing request of the app, such as cURL or Guzzle, not from the site itself. The remote server sends an incomplete or expired certificate chain, or the app passes its own outdated CA bundle. Check the remote host with curl -v https://remote.example.com, and never turn off verification to get rid of the error.