Can't get TLS working on HTTP API
I'm trying to activate SSL/TLS on the HTTP API, but without any luck
Running Tigase 7.0.4
Here is the relevant part of my init.properties file:
What am I doing wrong ?
Added by Andrzej Wójcik over 2 years ago
Tigase XMPP Server 7.0.4 ships and uses Tigase HTTP API in version 1.1.0. Support for configuration of SSL/TLS was added in Tigase HTTP API 1.2.0 and is not yet released as stable version.
This new version of Tigase HTTP API requires new version of Tigase XMPP Server (at least version 7.1.0, which should be released soon - for now only snapshot builds are available).
As for configuration it is wrong for version 1.1.0 as uses unsupported features, but it is also wrong for version 1.2.0 of HTTP API. It should look like this:
--comp-name-6=http --comp-class-6=tigase.http.HttpMessageReceiver http/http/server-class[S]=tigase.http.jetty.JettyStandaloneHttpServer http/http/ports[i]=8080,8081 http/http/8081/domain=mycompany.com http/http/8081/socket=ssl
http in line is name of component and second
http in line is part of property for this component. Also your needed to add
8081 to list of ports on which HTTP server should listen.
In this configuration we have plaintext http server on port 8080 and HTTPS server on port 8081.