sentry-java icon indicating copy to clipboard operation
sentry-java copied to clipboard

javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

Open bretthoerner opened this issue 8 years ago • 2 comments

If the user is on a modern JVM (such as 11), SSL can cause the exception noted in the title.

Adding '-Djdk.tls.client.protocols=TLSv1.1,TLSv1.2' to the JVM options should fix the issue.

Not sure if we can do anything more here.

bretthoerner avatar Nov 14 '18 20:11 bretthoerner

we are having the same issue with sentry 1.6 and java 13 @bretthoerner have you a solution other then settign the protocols?

aze-kool avatar Jun 02 '20 15:06 aze-kool

I could not reproduce this issue. We have just released SDK v3 - would be nice if you could check if it still happens with the new version.

In v3, we added an option to set custom SSLSocketFactory on SentryOptions. Perhaps it can help.

I am closing it for now, please comment if issue still occurs.

maciejwalkowiak avatar Oct 01 '20 10:10 maciejwalkowiak