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

使用webmagic构建请求,报错:handshake_failure #1184

Open
Bizhi-1024 opened this issue Dec 13, 2024 · 3 comments
Open

使用webmagic构建请求,报错:handshake_failure #1184

Bizhi-1024 opened this issue Dec 13, 2024 · 3 comments

Comments

@Bizhi-1024
Copy link

下一个版本是否可以支持以下类型的网站呢?
目标URL:https://ggzyjy.xuancheng.gov.cn/
报错信息:
javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:131)
at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:117)
at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:347)
at java.base/sun.security.ssl.Alert$AlertConsumer.consume(Alert.java:293)
at java.base/sun.security.ssl.TransportContext.dispatch(TransportContext.java:186)
at java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:172)
at java.base/sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1511)
at java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1421)
at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:456)
at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:427)
at org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:436)
at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:384)
at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142)
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:376)
at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:393)
at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186)
at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
at us.codecraft.webmagic.downloader.HttpClientDownloader.proceed(HttpClientDownloader.java:57)
at us.codecraft.webmagic.downloader.DownloadContext.proceed(DownloadContext.java:40)
at com.huayu.spider.middleware.SkipProxyDownloadMiddleware.proceed(SkipProxyDownloadMiddleware.java:25)
at us.codecraft.webmagic.downloader.DownloadContext.proceed(DownloadContext.java:40)
at us.codecraft.webmagic.downloader.HttpClientDownloader.download(HttpClientDownloader.java:81)

@sutra
Copy link
Collaborator

sutra commented Dec 14, 2024

webmagic 版本号?

@Bizhi-1024
Copy link
Author

1.0.1 最新版本

@sutra
Copy link
Collaborator

sutra commented Dec 22, 2024

该网站所使用的证书的根证书 China Financial Certification Authority, CFCA EV ROOT, (E2:B8:29:4B:55:84:AB:6B:58:C2:90:46:6C:AC:3F:B8:39:8F:84:83) 不在 Java 支持的列表里 [1]。

[1] Certificates that are in the Mozilla list, but not the Java list

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

2 participants