com.ecwid.consul.transport.TransportException: javax.net.ssl.SSLHandshakeException: Received fatal alert: bad_certificate

GitHub | rogerhill01234 | 3 months ago
  1. 0

    2-way SSL from Spring to Consul fails. (Keystore is not being read)

    GitHub | 3 months ago | rogerhill01234
    com.ecwid.consul.transport.TransportException: javax.net.ssl.SSLHandshakeException: Received fatal alert: bad_certificate
  2. 0

    2-way SSL from Spring to Consul fails. (Keystore is not being read)

    GitHub | 3 months ago | rogerhill01234
    com.ecwid.consul.transport.TransportException: javax.net.ssl.SSLHandshakeException: Received fatal alert: bad_certificate
  3. 0

    2 way SSL authentication not working using Apache httpclient: JAVA

    Stack Overflow | 2 years ago
    javax.net.ssl.SSLHandshakeException: Received fatal alert: bad_certificate
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    HttpComponents-Dev - [jira] [Updated] (HTTPCLIENT-1585) SSLContextBuilder does not preserve natural order of Trust / Key managers

    nabble.com | 1 year ago
    javax.net.ssl.SSLHandshakeException: Received fatal alert: bad_certificate
  6. 0

    [jira] [Commented] (HTTPCLIENT-1585) Client certificate not submitted half the time

    hc-dev | 2 years ago | Oleg Kalnichevski (JIRA)
    javax.net.ssl.SSLHandshakeException: Received fatal alert: bad_certificate

  1. kid 540 times, last 5 months ago
  2. poroszd 1 times, last 9 months ago
97 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. javax.net.ssl.SSLHandshakeException

    Received fatal alert: bad_certificate

    at sun.security.ssl.Alerts.getSSLException()
  2. Java JSSE
    SSLSocketImpl.startHandshake
    1. sun.security.ssl.Alerts.getSSLException(Alerts.java:192)[na:1.8.0_101]
    2. sun.security.ssl.Alerts.getSSLException(Alerts.java:154)[na:1.8.0_101]
    3. sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:2023)[na:1.8.0_101]
    4. sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1125)[na:1.8.0_101]
    5. sun.security.ssl.SSLSocketImpl.waitForClose(SSLSocketImpl.java:1769)[na:1.8.0_101]
    6. sun.security.ssl.HandshakeOutStream.flush(HandshakeOutStream.java:124)[na:1.8.0_101]
    7. sun.security.ssl.Handshaker.sendChangeCipherSpec(Handshaker.java:1083)[na:1.8.0_101]
    8. sun.security.ssl.ClientHandshaker.sendChangeCipherAndFinish(ClientHandshaker.java:1222)[na:1.8.0_101]
    9. sun.security.ssl.ClientHandshaker.serverHelloDone(ClientHandshaker.java:1134)[na:1.8.0_101]
    10. sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:348)[na:1.8.0_101]
    11. sun.security.ssl.Handshaker.processLoop(Handshaker.java:979)[na:1.8.0_101]
    12. sun.security.ssl.Handshaker.process_record(Handshaker.java:914)[na:1.8.0_101]
    13. sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1062)[na:1.8.0_101]
    14. sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)[na:1.8.0_101]
    15. sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403)[na:1.8.0_101]
    16. sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387)[na:1.8.0_101]
    16 frames
  3. Apache HttpClient
    CloseableHttpClient.execute
    1. org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:543)[httpclient-4.5.jar!/:4.5]
    2. org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:409)[httpclient-4.5.jar!/:4.5]
    3. org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:177)[httpclient-4.5.jar!/:4.5]
    4. org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:304)[httpclient-4.5.jar!/:4.5]
    5. org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:611)[httpclient-4.5.jar!/:4.5]
    6. org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:446)[httpclient-4.5.jar!/:4.5]
    7. org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:882)[httpclient-4.5.jar!/:4.5]
    8. org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:71)[httpclient-4.5.jar!/:4.5]
    9. org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:220)[httpclient-4.5.jar!/:4.5]
    10. org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:164)[httpclient-4.5.jar!/:4.5]
    11. org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:139)[httpclient-4.5.jar!/:4.5]
    11 frames
  4. com.ecwid.consul
    ConsulClient.getKVValues
    1. com.ecwid.consul.transport.AbstractHttpTransport.executeRequest(AbstractHttpTransport.java:75)[consul-api-1.1.10.jar!/:na]
    2. com.ecwid.consul.transport.AbstractHttpTransport.makeGetRequest(AbstractHttpTransport.java:50)[consul-api-1.1.10.jar!/:na]
    3. com.ecwid.consul.v1.ConsulRawClient.makeGetRequest(ConsulRawClient.java:81)[consul-api-1.1.10.jar!/:na]
    4. com.ecwid.consul.v1.kv.KeyValueConsulClient.getKVValues(KeyValueConsulClient.java:150)[consul-api-1.1.10.jar!/:na]
    5. com.ecwid.consul.v1.ConsulClient.getKVValues(ConsulClient.java:404)[consul-api-1.1.10.jar!/:na]
    5 frames
  5. org.springframework.cloud
    PropertySourceBootstrapConfiguration.initialize
    1. org.springframework.cloud.consul.config.ConsulPropertySource.init(ConsulPropertySource.java:64)[spring-cloud-consul-config-1.0.2.RELEASE.jar!/:1.0.2.RELEASE]
    2. org.springframework.cloud.consul.config.ConsulPropertySourceLocator.create(ConsulPropertySourceLocator.java:135)[spring-cloud-consul-config-1.0.2.RELEASE.jar!/:1.0.2.RELEASE]
    3. org.springframework.cloud.consul.config.ConsulPropertySourceLocator.locate(ConsulPropertySourceLocator.java:113)[spring-cloud-consul-config-1.0.2.RELEASE.jar!/:1.0.2.RELEASE]
    4. org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration.initialize(PropertySourceBootstrapConfiguration.java:89)[spring-cloud-context-1.1.0.RELEASE.jar!/:1.1.0.RELEASE]
    4 frames
  6. Spring Boot
    SpringApplication.run
    1. org.springframework.boot.SpringApplication.applyInitializers(SpringApplication.java:640)[spring-boot-1.3.5.RELEASE.jar!/:1.3.5.RELEASE]
    2. org.springframework.boot.SpringApplication.createAndRefreshContext(SpringApplication.java:343)[spring-boot-1.3.5.RELEASE.jar!/:1.3.5.RELEASE]
    3. org.springframework.boot.SpringApplication.run(SpringApplication.java:307)[spring-boot-1.3.5.RELEASE.jar!/:1.3.5.RELEASE]
    3 frames
  7. com.test
    TestApp.main
    1. com.test.TestApp.main(TestApp.java:23)[TestApp-1.0.3.jar!/:na]
    1 frame
  8. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_101]
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_101]
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_101]
    4. java.lang.reflect.Method.invoke(Method.java:498)[na:1.8.0_101]
    4 frames
  9. Spring Boot Loader
    MainMethodRunner.run
    1. org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:54)[TestApp-1.0.3.jar!/:na]
    1 frame
  10. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:745)[na:1.8.0_101]
    1 frame