Reputation: 4177
I am using org.jsoup:jsoup:1.12.1
:
Document doc = Jsoup.connect("https://example.com").get()
When I had tried JAVA: 8.0.232-open
, 9.0.4-open
, 11.0.5-open
I received
javax.net.ssl.SSLHandshakeException: No subject alternative DNS name matching <domain> found.
exception.
Project is using Grails4 and it's not building with JAVA > 12, cause in case JAVA13+ it throws:
1 error (NOTE: Stack trace has been filtered. Use --verbose to see entire trace.) org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: General error during semantic analysis: Unsupported class file major version 57
java.lang.IllegalArgumentException: Unsupported class file major version 57
From what I have found it's issue with JAVA itself, not with jsoup: JSoup javax.net.ssl.SSLHandshakeException: No subject alternative DNS name matching <url> found
I have tried Gradle: 3.5.1
and 6.1-rc-2
but without success.
How to resolve it?
Upvotes: 0
Views: 151