Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

My code was working fine with out any exception, i recently connected to a server , in my code i just changed the server host name, username and password. i got the following exception

javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: Certificates does not conform to algorithm constraints

When i googled , i found that we have to change the file Java\jre7\lib\security\java.security i referred this link click here.

But if we develop a client application this solution is not good enough. Is there any better way to resolve this problem.

Any help is appreciable

share|improve this question
4  
There are good reasons to disable MD2. Is the server under your control? Just wondering which CA still issues certificates using MD2. –  Bruno Feb 26 '13 at 10:29
    
Unfortunately Server is not in our control –  John Christy Feb 26 '13 at 10:46
    
@Burno server using self signed certificate –  John Christy Feb 26 '13 at 11:25
    
So now you have two reasons to complain to them, not just one. –  EJP Feb 26 '13 at 23:02

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.