Welcome! Log In Create A New Profile

Advanced

SNI host with non SSL wrong cert

basti
February 29, 2016 05:44AM
Hello,

I have nginx installed with multiple domainnames and multiple ssl-hosts
use SNI.
Now I add an other vhost with non-ssl server entry like example.com.
when I try to use https://example.com/ I get a cert from an other vhost.

I found this "solution" to "catch all"
|
|

|server { listen 443 ssl; server_name _; ssl on; ssl_certificate
/path/to/certificate.crt; ssl_certificate_key /path/to/certificate.key;
return 444; }|

|But I need a valid cert to get no error in browsser.
Also when I try to redirect it to non-ssl area.

Is there a solution without need a cert?

somethink like

||server {
listen 443;
server_name ssl.example.com;
break;
}|

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

SNI host with non SSL wrong cert

basti February 29, 2016 05:44AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 187
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready