I found a solution for this. I set the
jdk.tls.disabledAlgorithms= SSLv2Hello, SSLv3, TLSv1, TLSv1.1
in the file jre/lib/security/java.security
on the server.
After setting this, server only accepts the TLS1.2 connection and reject lower security protocol versions.
More Related Contents:
- Trusting all certificates using HttpClient over HTTPS
- Resolving javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed Error?
- Accept server’s self-signed ssl certificate in Java client
- Java: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
- How are SSL certificate server names resolved/Can I add alternative names using keytool?
- Java HTTPS client certificate authentication
- why doesn’t java send the client certificate during SSL handshake?
- How to fix the “java.security.cert.CertificateException: No subject alternative names present” error?
- How to handle invalid SSL certificates with Apache HttpClient? [duplicate]
- Secure HTTP Post in Android
- Allowing Java to use an untrusted certificate for SSL/HTTPS connection
- Keystore type: which one to use?
- Simple Java HTTPS server
- SSLHandshakeException: No subject alternative names present
- HttpGet with HTTPS : SSLPeerUnverifiedException
- Problems connecting via HTTPS/SSL through own Java client
- Java and HTTPS url connection without downloading certificate
- Whats an easy way to totally ignore ssl with java url connections?
- How to do an HTTPS POST from Android?
- Enabling specific SSL protocols with Android WebViewClient
- Java and SSL – java.security.NoSuchAlgorithmException
- How can I know if the request to the servlet was executed using HTTP or HTTPS?
- Java SSLException: hostname in certificate didn’t match
- javax.net.ssl.SSLException: SSL handshake aborted Connection reset by peer while calling webservice Android
- SSLContext initialization
- Android SSL HttpGet (No peer certificate) error OR (Connection closed by peer) error
- Using Apache httpclient for https
- How to hash a password with SHA-512 in Java?
- PKIX path building failed in Eclipse
- How to obtain the location of cacerts of the default java installation?