Hi Mirco,
On 26 October 2017 at 19:26, Mirco Hansen <
koseb...@gmail.com> wrote:
> Hello,
>
> I have some issues getting BOSH work with SSL. I have two virtual hosts and
> I want to run the BOSH SSL on port 5281 and 5282 (a dedicated port for each
> host because if I remeber correctly I read somewhere in the doc that SNI
> might not always work properly).
From the log snippets you posted, it looks like you are using 0.10.
The 'bosh_ports' option has been deprecated for some time. Remove it,
and set certificates like this:
https_ssl = {
[5281] = {
key = "/path/to/domain1.key";
certificate = "/path/to/domain1.crt";
};
[5282] = {
key = "/path/to/domain2.key";
certificate = "/path/to/domain2.crt";
};
}
Don't forget that if you are using a reverse proxy in front of Prosody
(Apache, nginx, etc.) which you will typically need to do for web
clients, then these servers will already provide SNI and you may not
need to serve multiple certificates from Prosody itself.
Regards,
Matthew