I am unable to access the Kibana domain name with HTTPS using SSL certificates

Hi all, I am trying to access the Kibana URL with HTTPS using the domain name and SSL certificates associated with the domain. 
I have configured Nginx on CentOS OS for this purpose. However, I can successfully access the Kibana URL with HTTP, but I am unable to access it with HTTPS. 
There are no errors reported in the Nginx logs.

but getting this error when i am trying to connect https 
SSL received a record that exceeded the maximum permissible length.

Error code: SSL_ERROR_RX_RECORD_TOO_LONG


port 443 allowed 

upstream kibana {
server ip:port number;
keepalive 15;
  }
server {
    listen 80;


    index index.php index.html index.htm index.nginx-debian.html;
    server_name example.dot.com;
    return 301 https://$host$request_uri;
}
server {
    listen 443 ssl;

    server_name example.dot.com;

    error_log   /var/log/nginx/kibana.error.log;
  access_log  /var/log/nginx/kibana.access.log;
  ssl_certificate /etc/nginx/ssl/STAR_com.crt;
  ssl_certificate_key /etc/nginx/ssl/sslpvt.key;
   
location /kibana {

        rewrite ^/kibana/?(.*)$ /$1 break;
        proxy_http_version 1.1;
        proxy_set_header Connection "";

        set $proxy_pass http://ipaddress:port;
        proxy_pass http://ipaddress:port;

        proxy_intercept_errors on;
        proxy_redirect off;
    }
}

Can anyone please help me with my issue? I am seeking assistance regarding my problem

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.