DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=36645>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36645





------- Additional Comments From [EMAIL PROTECTED]  2006-05-06 17:44 -------
Hi,

http://juliusdavies.ca/commons-ssl/ gives consumers the ability to change the
enabled ciphers and protocols.

If you use the AuthSSLProtocolSocketFactory I've altered there (but API is still
compatible with Oleg's original), you can do this:


AuthSSLProtocolSocketFactory authhttps;
authhttps = new AuthSSLProtocolSocketFactory(
              new URL("file:my.keystore"), "mypassword",
              new URL("file:my.truststore"), "mypassword"), 443); 

String[] ciphers = { "SSL_RSA_WITH_RC4_128_MD5", "SSL_RSA_WITH_RC4_128_SHA" };
String[] protocols = { "TLSv1" };
authhttps.setEnabledCiphers( ciphers );
authhttps.setEnabledProtocols( protocols );


setEnabledCiphers() is available to SSLClient, SSLServer, and any subclasses. 
In the http://juliusdavies.ca/commons-ssl/ example, that would include:

AuthSSLProtocolSocketFactory.java
BaseProtocolSocketFactory.java
EasySSLProtocolSocketFactory.java
StrictSSLProtocolSocketFactory.java
TrustSSLProtocolSocketFactory.java 


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to