org.apache.http.ssl.SSLInitializationException: TLS SSLContext not available

Stack Overflow | Wenburg Yan | 8 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0

    HttpClients.createDefault() error on linux

    Stack Overflow | 8 months ago | Wenburg Yan
    org.apache.http.ssl.SSLInitializationException: TLS SSLContext not available
  2. 0
    samebug tip
    TLS v1.2 wasn't implemented until java 7. Try upgrading your Java version or if you're stuck in java 5 or 6 and REALLY need to use TLS v1.2 try using BouncyCastle: https://goo.gl/Tg3jd0
  3. 0
    samebug tip
    This might also be because you're not initializing java the right way. Try to initialize with -server, and that might turn TLSv1.2 on!
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    SSL Chat Error Client Certificate and TLSv1.2 can't be recognized

    Stack Overflow | 3 years ago | user3097141
    java.security.NoSuchAlgorithmException: TLSv1.2 SSLContext not available
  6. 0

    TLSv1.2 SSL Chat Java, SSLContext not available

    Stack Overflow | 3 years ago | user3097141
    java.security.NoSuchAlgorithmException: TLSv1.2 SSLContext not available

    13 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.security.NoSuchAlgorithmException

      TLS SSLContext not available

      at sun.security.jca.GetInstance.getInstance()
    2. Java RT
      SSLContext.getInstance
      1. sun.security.jca.GetInstance.getInstance(GetInstance.java:159)
      2. javax.net.ssl.SSLContext.getInstance(SSLContext.java:156)
      2 frames
    3. Apache Http
      SSLContexts.createDefault
      1. org.apache.http.ssl.SSLContexts.createDefault(SSLContexts.java:54)
      1 frame
    4. Apache HttpClient
      HttpClients.createDefault
      1. org.apache.http.impl.client.HttpClientBuilder.build(HttpClientBuilder.java:966)
      2. org.apache.http.impl.client.HttpClients.createDefault(HttpClients.java:58)
      2 frames
    5. yan.javatips.closure
      HttpTest2.main
      1. yan.javatips.closure.HttpTest2.main(HttpTest2.java:26)
      1 frame