toggle menu

PEM_read_bio_X509_AUX: Expecting: TRUSTED CERTIFICATE

Dhananjay Kumar |28 Mar at 08:03

i have getting issues with ssl integration on digitalocen server, any one can suggest.

when sudo nginx -t run run :


SSL: error:0906D06c:PEM routines:PEM_read_bio:no start line:Expecting: TRUSTED CERTIFICATE
PEM_read_bio:no start line:Expecting: TRUSTED CERTIFICATE on digital ocean nginx
Nginx [emerg] PEM_read_bio_X509_AUX("/etc/nginx/ssl/adb.com.crt")

  • 1 like
  • 2 comments

Dhananjay Kumar28 Mar at 08:03

We have already tried with :
ssl on;
ssl_certificate /etc/nginx/ssl/abc.com.crt;
ssl_certificate_key /etc/nginx/ssl/abc.com.key;
ssl_dhparam /etc/nginx/ssl/abc.pem;

Dhananjay Kumar28 Mar at 06:03

yes i was just try with formate in certificate and private key files and its working
Like below :
------BEGIN CERTIFICATE-----
SFSDFSDFSDFSDFSDFSD SDXXXXX
XXXXXXXXSDFSDFSDXXXXXXXXXXX
SA21DDASDSA323CDSSADASDASS
GFHFGHF23423SDFSDFSDF1234SD
KTUY23DSFSDFDSFDSFSDFSDFSDA
1SDFSDFSDF DSF SDFS DFDSDSFSD
5SDFSDFSDFSDFSDFS
-----END CERTIFICATE-----

Posted:

28 Mar at 08:03

Viewed:

4019 times

Active:

28 Mar at 06:03