Hi,
We are trying to configure TCP load balancing with TLS termination. But when we try to access the URL, we could see the below error in the nginx error and access logs
Nginx Error Log:
2018/07/04 07:16:45 [crit] 7944#0: *61 SSL_do_handshake() failed (SSL: error:1407609B:SSL routines:SSL23_GET_CLIENT_HELLO:https proxy request) while SSL handshaking, client: XX.XXX.XX.XX, server: 0.0.0.0:443
Nginx Access Log:
10.90.241.125 - - [04/Jul/2018:07:24:55 +0000] TCP 500 0 0 0.000 "-"
The nginx.conf file looks like this
stream {
log_format sample '$remote_addr - - [$time_local] $protocol $status $bytes_sent $bytes_received $session_time "$upstream_addr"';
upstream backends {
server sample-domain-name.com:443;
}
server {
listen 443 ssl;
access_log /etc/access_logs/tcp_access_log sample;
ssl_certificate Certificate_PATH;
ssl_certificate_key Private_Key_Path;
proxy_ssl off;
proxy_pass backends;
}
}