Unknown opened 4 years ago
|
|
|
|
I switched to Tigase 8.1.1 but the issue is still here. Here is the full communication log of connection, client is Tigase web client (browser console just says it can't establish connection to the server)
|
|
By the way, when you set SSL certificate via web admin UI it checks domain name in CN, so for default certificate (which is in use for wss connections afaiu) it must be "*.default" to be accepted, don't think I can sign such a certificate. |
|
How do you set "default"? By selecting "default" vhost? In the newest, development version there is a checkbox to mark particular domain certificate as the default as the 'default' vhost shouldn't be used for it. At any rate, as an admin you still should be able to upload the certificate. Or you can place it directly to As for the issue with WSS connectivity - as unusual as it seems, using correct certificate (not self-signed) actually fixes the issue (i checked with sure.im client in Firefox and using websocat). Most likely you would somehow add your certificate/CA to the trust store of the client and then it would allow conneciton. |
|
At first, thanks for your concern. I've realized that I can put proxy, kind of nginx, in front to do ssl stuff and avoid enabling it in the Tigase. Right? Anyway the problem with self-signed certificates is odd, I'm pretty familiar with restrictions of self-signed certificates and it doesn't look like a case. FYI I was able to build and run latest release version 8.1.1 from sources and can debug it, so If you point me to the place to look at to investigate and resolve it, then I could. |
|
Yes, that's correct. We are using it in similar setup at tigase.im service.
Following classes are mainly responsible for handling encryption: JcaTLSWrapper, SSLContextContainer, TLSIO |
I use Tigase 8.1.0 as Docker image.
I've added to the config.tdsl following:
and uncommented TLS_DEBUG in the tigase.conf Clients successfully connect via
ws:/localhost:5290
but when I try to connect a client viawss:/localhost:5291
I get in logs (extracted most significant lines I believe)It happens no matter whether I remove default.pem allowing it to generate new one or generating self-signed byself with
openssl req -x509 -newkey rsa:4096 -keyout default.key.pem -out default.pem -days 365 -nodes -subj '/CN=*.default'
So far a question is: "How to enable wss? What I'm doing wrong?" Thanks in advance.