aspose file tools
The moose likes Sockets and Internet Protocols and the fly likes How does SSL work behind the scenes Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply Bookmark "How does SSL work behind the scenes" Watch "How does SSL work behind the scenes" New topic
Author

How does SSL work behind the scenes

Uttam Kini
Greenhorn

Joined: Aug 07, 2008
Posts: 17
Hello... I had to write a client to pull a file from a server with an HTTPS url ... I wrote a simple http client with authentication headers for userid and password.... It worked for me... I read about SSL and found out that HTTPS is not so simple as HTTP and a lot of authentication happens behind the scenes .... Since my program worked with an HTTP connection... I can not figure out who did the 'behind the scenes' job.... Since all HTTP requests go thru my company's proxy server, I guess it could be the proxy server who is doing the authentication.... I need this information because this program will run on someone else's network and I don't know if it will work for sure
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35438
    
    9
HTTPS/SSL/TLS is standardized, so as long as all sides implement the standards correctly -which I would assume for something as common as HTTPS- there shouldn't be a problem. Have you encountered problems using HTTPS in your environments?


Android appsImageJ pluginsJava web charts
Uttam Kini
Greenhorn

Joined: Aug 07, 2008
Posts: 17
I don't have a problem in my environment..... But this program will run on my client's machine in the near future and I just want to know if there could be problems.... I want to know when I use an HttpURLConnection class to connect to a site with an https URL, who implements the SSL protocol from my side .... Thats the reason I suspect my HTTP proxy server of doing it
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35438
    
    9
HttpUrlConnection supports HTTPS (it uses a javax.net.ssl.HttpsURLConnection object underneath). Any device or piece of software meant to handle web traffic better implement it as well, or it'd be pretty much useless.
[ September 30, 2008: Message edited by: Ulf Dittmer ]
Uttam Kini
Greenhorn

Joined: Aug 07, 2008
Posts: 17
Thats the information that i wanted [ ]...... Thanks a ton
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: How does SSL work behind the scenes
 
Similar Threads
Protocols
SOAP binding mismatch Glassfish 2.1/JAX-WS
Proxy By-Pass
My SCEA Part 1Study Notes
Error in setting SecureRMIClientSocketFactory