Regarding multiple domains.
Option 1
Web import does not support multiple SSL certs.
You can try to import two or more SSL certificates using the
command line.
For example:
1. Import SSL certificate + private key for domain1.com
2. 1. Import SSL certificate + private key for domain2.com
3. As a result conf/wss.jks file should contain certificates for two domains.
4. Then you can try to connect. i.e.
wss://domain1.com:8443
wss://domain2.com:8443
Both connects should be established.
Please note. We didn't test multi-domain setup. It may do not work at all.
Option 2
If it does not work, you can use Apache or Nginx as reverse proxy and setup multi-domain on your Web server.
I.e.
1. Import SSL certs into your Nginx for domain1.com and domain2.com
As a result your Nginx should respond on two URLs
https://domain1.com https://domain2.com
2. Setup reverse proxy for HTTP and for Websocket connection.
Domain1
https://domain1.com:443 >
http://localhost:8081
wss://domain1.com:443 > ws://localhost:8080
Domain2
https://domain2.com:443 >
http://localhost:8081
wss://domain2.com:443 > ws://localhost:8080