PEM_read_bio_X509_AUX() failed (SSL: error:0909006C:PEM routines:get_name:no start line:Expecting: TRUSTED CERTIFICATE)

Hi, I need some help with nginx in docker container. 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

The operating system my web server runs on is (include version):

Ububtu 20.04 LTS

My hosting provider, if applicable, is:

OVH

I can login to a root shell on my machine (yes or no, or I don't know):
YES

I'm using a control panel to manage my site (no, or provide the name and version of the control panel):
NO

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot):
NO

And where does this file /shared/ssl/domain.org.cer come from? Is it even a Let's Encrypt certificate?

No I dont use Lets Encrypt I connect domain with cloudflare. I installed discource forum on docker, from:

GitHub - discourse/discourse_docker: A Docker image for Discourse

This is the Let's Encrypt support Community. Not really meant for non-Let's Encrypt related certificate issues I'm afraid.

1 Like

@Osiris, they were pretty clear about what they wanted:

Unfortunately, they are asking for help in the wrong forum :frowning:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.