Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JDK1.8 情况下出现 SSLExption #38

Closed
Jfirm opened this issue Oct 18, 2021 · 7 comments
Closed

JDK1.8 情况下出现 SSLExption #38

Jfirm opened this issue Oct 18, 2021 · 7 comments

Comments

@Jfirm
Copy link

Jfirm commented Oct 18, 2021

image

@keac
Copy link
Member

keac commented Oct 18, 2021

请问是用什么Java版本的环境出现的问题,https://fofa.so/ 能否正常打开

@Jfirm
Copy link
Author

Jfirm commented Oct 18, 2021

能打开https://fofa.so/ 用的java1.8 fofa——viewer也是1.8的
image

@keac
Copy link
Member

keac commented Oct 18, 2021

尝试在启动参数加上 -Dhttps.protocols=TLSv1.2 试试

@wgpsec wgpsec deleted a comment from Jfirm Oct 18, 2021
@Jfirm
Copy link
Author

Jfirm commented Oct 18, 2021

image
还是不行哦

@Jfirm
Copy link
Author

Jfirm commented Oct 18, 2021

error.log

十月 18, 2021 3:20:43 下午 org.fofaviewer.utils.LogUtil log
警告: javax.net.ssl.SSLException: Received fatal alert: internal_error
me.gv7.woodpecker.requests.exception.RequestsException: javax.net.ssl.SSLException: Received fatal alert: internal_error
at me.gv7.woodpecker.requests.executor.URLConnectionExecutor.doRequest(URLConnectionExecutor.java:194)
at me.gv7.woodpecker.requests.executor.URLConnectionExecutor.proceed(URLConnectionExecutor.java:46)
at me.gv7.woodpecker.requests.InterceptorChain.proceed(InterceptorChain.java:22)
at me.gv7.woodpecker.requests.RequestBuilder.send(RequestBuilder.java:493)
at org.fofaviewer.utils.RequestHelper.getHTML(RequestHelper.java:60)
at org.fofaviewer.controls.RequestTask.call(RequestTask.java:21)
at org.fofaviewer.controls.RequestTask.call(RequestTask.java:8)
at javafx.concurrent.Task$TaskCallable.call(Task.java:1423)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: javax.net.ssl.SSLException: Received fatal alert: internal_error
at sun.security.ssl.Alerts.getSSLException(Unknown Source)
at sun.security.ssl.Alerts.getSSLException(Unknown Source)
at sun.security.ssl.SSLSocketImpl.recvAlert(Unknown Source)
at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(Unknown Source)
at me.gv7.woodpecker.requests.executor.URLConnectionExecutor.doRequest(URLConnectionExecutor.java:192)
... 9 more

十月 18, 2021 3:22:41 下午 org.fofaviewer.utils.LogUtil log
警告: javax.net.ssl.SSLException: Received fatal alert: internal_error
me.gv7.woodpecker.requests.exception.RequestsException: javax.net.ssl.SSLException: Received fatal alert: internal_error
at me.gv7.woodpecker.requests.executor.URLConnectionExecutor.doRequest(URLConnectionExecutor.java:194)
at me.gv7.woodpecker.requests.executor.URLConnectionExecutor.proceed(URLConnectionExecutor.java:46)
at me.gv7.woodpecker.requests.InterceptorChain.proceed(InterceptorChain.java:22)
at me.gv7.woodpecker.requests.RequestBuilder.send(RequestBuilder.java:493)
at org.fofaviewer.utils.RequestHelper.getHTML(RequestHelper.java:60)
at org.fofaviewer.controls.RequestTask.call(RequestTask.java:21)
at org.fofaviewer.controls.RequestTask.call(RequestTask.java:8)
at javafx.concurrent.Task$TaskCallable.call(Task.java:1423)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: javax.net.ssl.SSLException: Received fatal alert: internal_error
at sun.security.ssl.Alerts.getSSLException(Unknown Source)
at sun.security.ssl.Alerts.getSSLException(Unknown Source)
at sun.security.ssl.SSLSocketImpl.recvAlert(Unknown Source)
at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(Unknown Source)
at me.gv7.woodpecker.requests.executor.URLConnectionExecutor.doRequest(URLConnectionExecutor.java:192)
... 9 more

十月 18, 2021 3:23:39 下午 org.fofaviewer.utils.LogUtil log
警告: javax.net.ssl.SSLException: Received fatal alert: internal_error
me.gv7.woodpecker.requests.exception.RequestsException: javax.net.ssl.SSLException: Received fatal alert: internal_error
at me.gv7.woodpecker.requests.executor.URLConnectionExecutor.doRequest(URLConnectionExecutor.java:194)
at me.gv7.woodpecker.requests.executor.URLConnectionExecutor.proceed(URLConnectionExecutor.java:46)
at me.gv7.woodpecker.requests.InterceptorChain.proceed(InterceptorChain.java:22)
at me.gv7.woodpecker.requests.RequestBuilder.send(RequestBuilder.java:493)
at org.fofaviewer.utils.RequestHelper.getHTML(RequestHelper.java:60)
at org.fofaviewer.controls.RequestTask.call(RequestTask.java:21)
at org.fofaviewer.controls.RequestTask.call(RequestTask.java:8)
at javafx.concurrent.Task$TaskCallable.call(Task.java:1423)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: javax.net.ssl.SSLException: Received fatal alert: internal_error
at sun.security.ssl.Alerts.getSSLException(Unknown Source)
at sun.security.ssl.Alerts.getSSLException(Unknown Source)
at sun.security.ssl.SSLSocketImpl.recvAlert(Unknown Source)
at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(Unknown Source)
at me.gv7.woodpecker.requests.executor.URLConnectionExecutor.doRequest(URLConnectionExecutor.java:192)
... 9 more

十月 18, 2021 5:29:38 下午 org.fofaviewer.utils.LogUtil log
警告: javax.net.ssl.SSLException: Received fatal alert: internal_error
me.gv7.woodpecker.requests.exception.RequestsException: javax.net.ssl.SSLException: Received fatal alert: internal_error
at me.gv7.woodpecker.requests.executor.URLConnectionExecutor.doRequest(URLConnectionExecutor.java:194)
at me.gv7.woodpecker.requests.executor.URLConnectionExecutor.proceed(URLConnectionExecutor.java:46)
at me.gv7.woodpecker.requests.InterceptorChain.proceed(InterceptorChain.java:22)
at me.gv7.woodpecker.requests.RequestBuilder.send(RequestBuilder.java:493)
at org.fofaviewer.utils.RequestHelper.getHTML(RequestHelper.java:60)
at org.fofaviewer.controls.RequestTask.call(RequestTask.java:21)
at org.fofaviewer.controls.RequestTask.call(RequestTask.java:8)
at javafx.concurrent.Task$TaskCallable.call(Task.java:1423)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: javax.net.ssl.SSLException: Received fatal alert: internal_error
at sun.security.ssl.Alerts.getSSLException(Unknown Source)
at sun.security.ssl.Alerts.getSSLException(Unknown Source)
at sun.security.ssl.SSLSocketImpl.recvAlert(Unknown Source)
at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(Unknown Source)
at me.gv7.woodpecker.requests.executor.URLConnectionExecutor.doRequest(URLConnectionExecutor.java:192)
... 9 more

十月 18, 2021 5:40:19 下午 org.fofaviewer.utils.LogUtil log
警告: javax.net.ssl.SSLException: Received fatal alert: internal_error
me.gv7.woodpecker.requests.exception.RequestsException: javax.net.ssl.SSLException: Received fatal alert: internal_error
at me.gv7.woodpecker.requests.executor.URLConnectionExecutor.doRequest(URLConnectionExecutor.java:194)
at me.gv7.woodpecker.requests.executor.URLConnectionExecutor.proceed(URLConnectionExecutor.java:46)
at me.gv7.woodpecker.requests.InterceptorChain.proceed(InterceptorChain.java:22)
at me.gv7.woodpecker.requests.RequestBuilder.send(RequestBuilder.java:493)
at org.fofaviewer.utils.RequestHelper.getHTML(RequestHelper.java:60)
at org.fofaviewer.controls.RequestTask.call(RequestTask.java:21)
at org.fofaviewer.controls.RequestTask.call(RequestTask.java:8)
at javafx.concurrent.Task$TaskCallable.call(Task.java:1423)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: javax.net.ssl.SSLException: Received fatal alert: internal_error
at sun.security.ssl.Alerts.getSSLException(Unknown Source)
at sun.security.ssl.Alerts.getSSLException(Unknown Source)
at sun.security.ssl.SSLSocketImpl.recvAlert(Unknown Source)
at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(Unknown Source)
at me.gv7.woodpecker.requests.executor.URLConnectionExecutor.doRequest(URLConnectionExecutor.java:192)
... 9 more

@keac
Copy link
Member

keac commented Oct 18, 2021

可以尝试下 添加以下参数
-Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2
-Djdk.tls.client.protocols=TLSv1

若不行怀疑是JDK版本问题,建议升级版本,我本地版本为 1.8.0_281,正常运行

参考文章:https://blog.csdn.net/sarafina527/article/details/104813015

@keac keac closed this as completed Oct 18, 2021
@keac keac pinned this issue Oct 19, 2021
@keac keac changed the title error JDK1.8 情况下出现 SSLExption Oct 19, 2021
@052412
Copy link

052412 commented Aug 2, 2022

超时时常如何配置

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants