Nginx using with https :(

Miguel Clara miguelmclara at gmail.com
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
<http://forum.nginx.org/profile.php?2,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 gmail.com
         www.linkedin.com/in/miguelmclara/


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

> /etc/nginx/sites-available/default
>
> http://paste.debian.net/118482/
>
> /etc/nginx/nginx.conf
>
> http://paste.debian.net/118483/
>
> 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/example.com.csr") 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:
> http://forum.nginx.org/read.php?2,252951,252964#msg-252964
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20140831/c503a538/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: linkedin.png
Type: image/png
Size: 655 bytes
Desc: not available
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20140831/c503a538/attachment.png>


More information about the nginx mailing list