Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Disabling Anonymous Cipher Suites?????

880540Aug 5 2011 — edited Aug 18 2011
How to disable the anon suites for some particular port?

We are enabling the anon suites in our code .
on server
socket.setEnabledCipherSuites(SERVER_SOCKET_ANON_SUITES); ----------> Only Anonymous
on client
socket.setEnabledCipherSuites( SSL_SOCKET_ANON_SUITES )----------> Only Anonymous

The code above is working fine but now we want to disable anonymous ciphers for some specific port .
We tried
on server
socket.setEnabledCipherSuites(SERVER_SOCKET_NON_ANON_SUITES);. --------------------------> by removing the ANON suites from the list of all Ciphers supported by the SSL Socket
on client
socket.setEnabledCipherSuites(SSL_SOCKET_NON_ANON_SUITES);------------------------------->by removing the ANON suites from the list of all Ciphers supported by the SSL Socket

Both the conditions have been put there depending upon the port.

Its throwing
javax.net.ssl.SSLException: No available certificate or key corresponds to the SSL cipher suites which are enabled.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 15 2011
Added on Aug 5 2011
19 comments
2,299 views