Can I use another port other than 443 for SSL communication?

57

8

I have an application that communicates via SSL, however, Port 443 is already in use by an IIS instance on that same server. Can I use another port other than 443 for SSL communication?

dandaman12

Posted 2014-08-01T13:28:29.707

Reputation: 837

Answers

70

SSL is in no way tied to a single port value; in fact, as a protocol, it can be used over any transport medium, as long as that medium provides a bidirectional stream for arbitrary bytes.

In a Web context, you can use any port other than 443, provided that you specify it in the URL: https://www.example.com:7342/foobar.html

Note that there are some networks (especially some free WiFi access points) that don't allow traffic over other ports than 443 or 80; which means that using a port other than 443, though perfectly standard and supported, may imply some practical usage restrictions.

Tom Leek

Posted 2014-08-01T13:28:29.707

Reputation: 1 191

7

You can use (nearly) every port, which is not used, for SSL communication. The question is: Did you mean that someone enters https://... and your service is not on port 443? Than it is not directly possible. Modern browsers use the prefix https:// to connect to serveraddress:443 (if no port is present). Similar to http:// which connects to serveraddress:80.

Serverfrog

Posted 2014-08-01T13:28:29.707

Reputation:

Thanks for your response. The other services using SSL is a security tool, so it is not related specifically to using "https://.." – dandaman12 – 2014-08-01T14:16:04.920

6

Andy Boura

Posted 2014-08-01T13:28:29.707

Reputation: 163

1Not answering the question as such but answering the spirit of it! – None – 2014-08-01T14:07:31.383

Great info! I didn't realize IIS 8.0 resolved the multi cert issue / multi IP addresses requirement. – k1DBLITZ – 2014-08-01T14:41:03.453