Search code examples
sslnetwork-programmingserveropenfirenat

Multiple application under SSL (TCP 443)


I implemented a server with two deploy of different services(Apache and OpenFire). And I want to implement https for my server, so my question is. How to implement the SSL certificate on my server with two different application working with different ports?

I was looking about how to create a NAT network but I'm not sure if this is the best way to do it.


Solution

  • Apache is an HTTP Server and for SSL by default HTTP Servers use 443 port. However, Openfire in an XMPP Server and you can enable TLS in it which will by default use 5222 port. And for Openfire's admin application, HTTPS will be on 9091 port by default.

    So you can have both servers on same machine with SSL enabled.