Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

URLConnection and HTTPS and JSSE and OpenSSL  RSS feed

 
achana chan
Ranch Hand
Posts: 277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Dirk, I don't know where this message belongs...
Environment : Tomcat4 + Apache2 + j2sdk1.4
I use java http-tunneling over RMI, and throughout the coding process, I made sure I used URLConnection rather than HttpURLConnection because I knew we will have to go through Apache+mod_ssl to talk to OpenSSL when going back to the client browsers.
I switched on tcpdump to test the final product.
Normal http messages going back are encrypted.
Data coming back from Tomcat and going through https (ie port 443) are not *well* encrypted - some fields are in plain text.
As I understand it, j2sdk1.4 comes with JSSE and it can handle https and encryption.
Obviously, I have either misunderstood or I have done something wrong if I can see plain text.
Some explanation and guidance would be good...
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm moving this to The Sockets and Internet Protocols Forum...
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!