Report this

What is the reason for this report?

peer closed connection in SSL handshake

Posted on July 18, 2020

Hello I have a problem with my server

2020/07/18 08:41:34 [error] 1031#1031: *3044185 peer closed connection in SSL handshake (104: Connection reset by peer) while SSL handshaking to upstream, client: 156.199.193.107, server: onma.me, request: "GET /api/v3/latest-chapter?API_key=Hs0-23@vqaZgM(g&page=1 HTTP/1.1", upstream: "https://62.171.183.237:8443/api/v3/latest-chapter?API_key=Hs0-23@vqaZgM(g&page=1", host: "onma.me"

Control Panel: cpanel System: CentOS 7.0 Server: Apache & Nginx

Thank you



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi there @bilalezzat,

What I could suggest in this case is, in order to resolve the SSL error, I would recommend using an actual domain name with Nginx reverse proxy.

That way rather than having your API at: https://your_ip:8443/api which results in an SSL error, you could have it at: https://yourdomain.com/api.

Hope that this helps! Regards, Bobby

Hi @bilalezzat,

It seems like you are using Nginx as a reverse proxy. In such case you’ll need to add the following option to your configuration file

proxy_ssl_server_name on;

That way you’ll ensure you are passing your SSL when proxying connections.

Regards, KFSys

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.