NGINX - peer closed connection in SSL Handshake 500 /502 error
Posted: Sun Feb 02, 2020 7:53 pm
I have a server that has SSL loaded on it. For some reason now I am getting 500 server errors.
Doing a curl -v https://www.mylakewoodsanta.com reveals:
In the Vesta log for the domain I get:
So I am quite confused as to what is causing this. Any ideas?
Doing a curl -v https://www.mylakewoodsanta.com reveals:
Code: Select all
# curl -v https://www.mylakewoodsanta.com
* Rebuilt URL to: https://www.mylakewoodsanta.com/
* Trying 162.245.239.218...
* TCP_NODELAY set
* Connected to www.mylakewoodsanta.com (162.245.239.218) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: /etc/ssl/certs
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Client hello (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384
* ALPN, server accepted to use http/1.1
* Server certificate:
* subject: CN=mylakewoodsanta.com
* start date: Feb 2 17:49:34 2020 GMT
* expire date: May 2 17:49:34 2020 GMT
* subjectAltName: host "www.mylakewoodsanta.com" matched cert's "www.mylakewoodsanta.com"
* issuer: C=US; O=Let's Encrypt; CN=Let's Encrypt Authority X3
* SSL certificate verify ok.
> GET / HTTP/1.1
> Host: www.mylakewoodsanta.com
> User-Agent: curl/7.58.0
> Accept: */*
>
< HTTP/1.1 502 Bad Gateway
< Server: nginx
< Date: Sun, 02 Feb 2020 19:51:21 GMT
< Content-Type: text/html
< Content-Length: 1256
< Connection: keep-alive
< ETag: "5e370472-4e8"
<
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head>
<title>500 — Internal Sever Error</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="description" content="Sorry, something went wrong. Internal Server Error"/>
<style type="text/css">
body {font-size:14px; color:#777777; font-family:arial; text-align:center;}
h1 {font-size:180px; color:#99A7AF; margin: 70px 0 0 0;}
h2 {color: #DE6C5D; font-family: arial; font-size: 20px; font-weight: bold; letter-spacing: -1px; margin: -3px 0 39px;}
p {width:320px; text-align:center; margin-left:auto;margin-right:auto; margin-top: 30px }
div {width:320px; text-align:center; margin-left:auto;margin-right:auto;}
a:link {color: #34536A;}
a:visited {color: #34536A;}
a:active {color: #34536A;}
a:hover {color: #34536A;}
</style>
</head>
<body>
<p><a href="http://mylakewoodsanta.com/">mylakewoodsanta.com</a></p>
<h1>500</h1>
<h2>Internal Server Error</h2>
<div>
Sorry, something went wrong :(
</div>
</body>
</html>
Code: Select all
2020/02/02 11:20:55 [error] 7719#7719: *24760 peer closed connection in SSL handshake while SSL handshaking to upstream, client: 162.245.239.218, server: mylakewoodsanta.com, request: "GET / HTTP/1.0", upstream: "https://162.245.239.218:443/", host: "www.mylakewoodsanta.com"
2020/02/02 11:22:08 [error] 7719#7719: *26827 peer closed connection in SSL handshake while SSL handshaking to upstream, client: 162.245.239.218, server: mylakewoodsanta.com, request: "GET / HTTP/1.0", upstream: "https://162.245.239.218:443/", host: "www.mylakewoodsanta.com"
2020/02/02 11:30:35 [error] 7719#7719: *29043 peer closed connection in SSL handshake while SSL handshaking to upstream, client: 162.245.239.218, server: mylakewoodsanta.com, request: "GET /wp-admin/ HTTP/1.0", upstream: "https://162.245.239.218:443/wp-admin/", host: "www.mylakewoodsanta.com"