This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Security and the fly likes Ciphers Suites in java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "Ciphers Suites in java" Watch "Ciphers Suites in java" New topic

Ciphers Suites in java

Ashish Kirpan

Joined: Jan 24, 2011
Posts: 22

I want to use Ciphers Suites in java program.
If you having any idea regarding how to add cipher suites in java sample java program then please help me.

Here is the actual scenario

I am using org.apache.commons.httpclient.HttpClient class to send the request to server over HTTPS connection.
The Client(My java program) must support below cipher suites for handshake
Right now i am able to set only one cipher suite i.e. SSL_RSA_WITH_3DES_EDE_CBC_SHA (SSL Version 3)
but i dont know how to set TLS_RSA_WITH_3DES_EDE_CBC_SHA (TLS).

any help is appreciated
greg stark
Ranch Hand

Joined: Aug 10, 2006
Posts: 220
TLS_RSA_WITH_3DES_EDE_CBC_SHA and SSL_RSA_WITH_3DES_EDE_CBC_SHA are the same cipher suite, they are synonyms. The JSSE only lists the one but it works for both SSL v3 and TLS 1.0.

Nice to meet you.
Ashish Kirpan

Joined: Jan 24, 2011
Posts: 22

Thanks Greg.
I agree. Here's the link:
subject: Ciphers Suites in java
Similar Threads
getSupportedCipherSuites() is not giving any af the 256 bit cipher suites No available certificate or key corresponds to the SSL cipher suites whi
Confusion over SSL and TLS for sending mail thorugh JAVA Mail API
certificate to establish a secured connection(SSL)
Server Socket :Unable to make connection