yoko
(yoko)
2021 年1 月 19 日 10:59
1
I tried to set up forum using discourse on ubuntu 20.04 LTS on VPS. But after install I get:
nginx: [emerg] cannot load certificate "/shared/ssl/domain.org.cer": PEM_read_bio_X509_AUX() failed (SSL: error:0909006C:PEM routines:get_name:no start line:Expecting: TRUSTED CERTIFICATE)
nginx: configuration file /etc/nginx/nginx.conf test fail
My domain is:
I ran this command:
sudo nginx -t
It produced this output:
nginx: [emerg] cannot load certificate "/shared/ssl/domain.org.cer": PEM_read_bio_X509_AUX() failed (SSL: error:0909006C:PEM routines:get_name:no start line:Expecting: TRUSTED CERTIFICATE)
nginx: configuration file /etc/nginx/nginx.conf test fail
My web server is (include version):
nginx version: nginx/1.18.0
Should I create a certificate? This appears after I clone the latest repo from github. Is this a desired behavior?
pfaffman
(Jay Pfaffman)
2021 年1 月 19 日 13:19
2
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.
4 个赞
yoko
(yoko)
2021 年1 月 19 日 14:35
3
So week(7 days) is an time I must to wait to set up again everythink?
pfaffman
(Jay Pfaffman)
2021 年1 月 19 日 17:06
4
That’s my best guess from what you described.
yoko
(yoko)
2021 年1 月 19 日 17:08
5
Ok, lets wait. I will post after if thats worked.
oca
2021 年1 月 31 日 14:39
6
For the record, I’ve had the same issue and the problem was that I forgot to redirect port 80 to the server.
The DNS check done by discourse-server.sh
might be done on port 443 only and did not detect the problem.
But Let’s Encrypt does need the port 80 also open.
1 个赞