A user, yoko, encountered an SSL certificate error during a Discourse installation on Ubuntu 20.04 LTS, with the error indicating a missing start line in the certificate file. pfaffman suggests this may be due to hitting Let’s Encrypt’s rate limit after multiple failed attempts, recommending either adding another domain or waiting a week. oca adds that the issue might stem from port 80 not being open, which is required for Let’s Encrypt’s DNS validation, even if the initial check was on port 443.
If you did a Discourse official Standard Installation and deleted everything and started over a bunch of times, you hit the let’s encrypt rate limit and can’t get a certificate for a week. You can bypass this if you follow Setting up Let’s Encrypt with Multiple Domains and add some other domain to the site. You could also just use a different name or wait a week.