Disabling Anonymous Cipher Suites?????
880540Aug 5 2011 — edited Aug 18 2011How 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.