chain validation failed SSLHandshakeException 5 Solution

chain validation failed SSLHandshakeException 5 Solution

Pétur Gulnara Author: Pétur Gulnara Date: 2022-08-09
chain validation failed SSLHandshakeException 5 Solution

    1. FAILURE
    2. Sometime when you try to do a HTTPS POST request to your server. you get SSLHandshakeException - Chain chain validation failed, all the time. but when using POSTMAN you get a response from the server. What can be causing this error when I try to send the request from the application?

    3. Most common Solution
    4. In many case it was the wrong date on phone.

      Fixing date resolved an issue

    5. Solution 2
    6. if the abouve Solution dont work Try this one

      The problem may be that the certificate was expired.

    7. Solution 3
    8. If you're using an emulated device it may solve the problem if you just 'Cold Boot' it.

      Sometimes the date on those things can get stuck if you let them run for some time, which results in this expired-certificate-problem.

    9. Solution 4
    10. In my case, I fetch this issue on Android Emulator. When I clear emulator cache has resolved the issue.

      enter image description here


Related posts:

No Related posts Where Found.