Skip to content

Gradle throws: "unable to find valid certification path to requested target" #363

Answered by hennlo
hennlo asked this question in Q&A
Discussion options

You must be logged in to vote

Permanent Fix

Although this seems to be an error related to the used version of TLS it has two different causes:

  1. It is most likely that you sit behind a company proxy which is intercepting your calls, which is considered a man in the middle attack and is therefore aborted.

  2. Your JDKs specific keystore is empty
    This can happen if you switched to a new JDK version, or the old one was corrupted.

Solution

The solution to resolve this is still the same for both root causes.
You need to update the keystore of your IDE to trust all necessary certificates for that call.

Procedure

  1. Navigate to any website and extract the all certificates in the chain starting with the topmost certificate of …

Replies: 1 comment

Comment options

hennlo
Oct 18, 2021
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by hennlo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant