Multiple Virtual host SSL


New Member
Hello all.

I am using OpenLiteSpeed for my webserver. i have 2 domain and 2 virtual host.
i create listener for 443 and set secure to yes and map virtual hosts this listener 443.
i configured ssl at virtual hosts.
but not access https://

i think i need to enter ssl for 443 listeners. but I don't know what to write.
Listener 443 > SSL -> config ssl CERT, Private key for virtual host 1

access https://host1 ok.

But map virtual host 2 to 443, access https://host2 not trust ssl.

What certificate should I write for the listener?

Thanks you very much for all your support.



New Member
I solved the problem. created a new certificate;
openssl req -x509 -nodes -days 365 -newkey rsa: 2048 -keyout /bla/bla/test-private.key -out /bla/bla/test-cert.crt
and I defined this certificate to the listener.
problem solved. There is now 443 access for every 2 virtual hosts.


so wait, a self-signed certificate works? I'm trying to setup multiple websites on OLS and I'm having trouble with the different SSL certs