I ran this command:
Tried to connect to fitpets.app from browser
It produced this output:
fitpets.app uses an invalid security certificate.
The certificate is not trusted because it is self-signed.
Error code: MOZILLA_PKIX_ERROR_SELF_SIGNED_CERT
My web server is (include version):
nginx version: nginx/1.18.0
The operating system my web server runs on is (include version):
Ubuntu 20
My hosting provider, if applicable, is:
google domains
I can login to a root shell on my machine (yes or no, or I don't know):
Yes, I use AWS EC2
The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot):
certbot 1.10.1
Google Domains detects my certificates and so do other certificate checking sites.
Apparently *.app sites have some extra protection from Google HSTS, but I don't really know how to fix the error.
I thought using Let's Encrypt to generate a certificate would fix it but maybe I need to also register the certificate somehow?
Eliminating the www subdomain eliminates 100% of redirects for sites using HSTS and 50% of redirects for sites not using HSTS. No need for a www serveralias or CNAME/A record. Never need to remember to include www in certificate. Greatly simplifies address canonicalization.