Nginx using with https :(

Miguel Clara miguelmclara at
Sun Aug 31 01:31:29 UTC 2014

Have you created those certs?

Weren't you using:

     	ssl_certificate /etc/nginx/server.crt;
     	ssl_certificate_key /etc/nginx/server.key;

It seems you just removed the comments on the default config to see if it
would magically work, but the cert files don't exist, that just an example!

Please don't try everything until it works... the patch dewanggaba
<,663> gave should do it, all you need
it to have the cert/key created (I'm assuming self signed certificates, if
you don't know how to do it just google it, first hits should give you
enough info)

Melhores Cumprimentos // Best Regards
*Miguel Clara*
*IT - Sys Admin & Developer*
*E-mail:    *miguelmclara at

On Sun, Aug 31, 2014 at 2:08 AM, nginxfanboy <nginx-forum at> wrote:

> /etc/nginx/sites-available/default
> /etc/nginx/nginx.conf
> I believe I'm near on my destination.
> My error Message is now
> Restarting nginx: nginx: [emerg]
> SSL_CTX_use_certificate_chain_file("/etc/nginx/") failed
> (SSL: error:0906D06C:PEM routines:PEM_read_bio:no start line
> error:140DC009:SSL routines:SSL_CTX_use_certificate_chain_file:PEM lib)
> nginx: configuration file /etc/nginx/nginx.conf test failed
> by root at cseipel:/etc/nginx/sites-available# service nginx restart
> Posted at Nginx Forum:
> _______________________________________________
> nginx mailing list
> nginx at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: linkedin.png
Type: image/png
Size: 655 bytes
Desc: not available
URL: <>

More information about the nginx mailing list