Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ssl on an opened socket

 
marta martaf
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
i've got such a problem-i connect with a server using normal SocketConnection, then after sendig a frame to the server i must 'change' this SocketConnection to the SSL one. Do You have any suggestions how? i've heard about bouncy castle project, i've been on their page but i did not find any docs which will help me to solve my problem..


thanks for any suggestions,
regards
 
Tim Holloway
Saloon Keeper
Posts: 18367
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have to have agreement between client and server. SSL normally doesn't expect you to connect in plain-text mode and then switch. Although some dial-up Internet protocols did. You simply issued a command that told the server to switch to encrypted mode.

There's no such thing as an "SSL Socket", though. Just a plain socket that's listening for SSL-protocol traffic. If the listening application was written to support it, it can switch to or from SSL anytime it wants, but it's the application's decision. Some LDAP servers do that, allowing either plain-text or TLS (secure) traffic on port 389.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic