HTTP and SSL

Troubleshooting Tip

If you are trying to get an HTTPS connection using Java and are having trouble, see "Can't Get HTTPS Connection" in the "Troubleshooting" section at the end of this chapter.

SSL is a protocol that runs on top of a TCP/IP connection. When a client Socket attempts to make a connection with a server socket that is listening on a secure port, such as the standard SSL port 443, there is some extra communication that takes place between the server and the client. The main thing that is decided between the two sides is how they are going to encrypt the data that is sent back and forth between them. This is not always successful, because the two sides can support various algorithms and they might not have an algorithm ...

Get Special Edition Using Java 2 Standard Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.