wood burning stoves 2.0*
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 Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "Ciphers Suites in java" Watch "Ciphers Suites in java" New topic
Author

Ciphers Suites in java

Ashish Kirpan
Greenhorn

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
TLS_RSA_WITH_3DES_EDE_CBC_SHA (TLS) and SSL_RSA_WITH_3DES_EDE_CBC_SHA (SSL Version 3) .
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
Greenhorn

Joined: Jan 24, 2011
Posts: 22

Thanks Greg.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Ciphers Suites in java
 
Similar Threads
Server Socket :Unable to make connection
certificate to establish a secured connection(SSL)
Confusion over SSL and TLS for sending mail thorugh JAVA Mail API
getSupportedCipherSuites() is not giving any af the 256 bit cipher suites
javax.net.ssl.SSLException: No available certificate or key corresponds to the SSL cipher suites whi