Comments (8)
这个组件是纯Java编写,而且没有使用JDK的内部API,料想也可以用于Android平台。
from tencentkonasmsuite.
@johnshajiang 集成调试过程中遇到javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure问题,请教下,是否还需要进行其他个性化配置
from tencentkonasmsuite.
能否提供详细的日志?
执行时需要加上系统属性-Dcom.tencent.kona.ssl.debug=all
注意,请删除日志中不应该暴露的敏感信息。
from tencentkonasmsuite.
@johnshajiang android客户端日志有限:
javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
W/System.err: at com.tencent.kona.sun.security.ssl.Alert.createSSLException(Alert.java:131)
W/System.err: at com.tencent.kona.sun.security.ssl.Alert.createSSLException(Alert.java:117)
W/System.err: at com.tencent.kona.sun.security.ssl.TransportContext.fatal(TransportContext.java:358)
W/System.err: at com.tencent.kona.sun.security.ssl.Alert$AlertConsumer.consume(Alert.java:293)
W/System.err: at com.tencent.kona.sun.security.ssl.TransportContext.dispatch(TransportContext.java:204)
W/System.err: at com.tencent.kona.sun.security.ssl.SSLTransport$-CC.decode(SSLTransport.java:172)
W/System.err: at com.tencent.kona.sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1508)
W/System.err: at com.tencent.kona.sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1423)
W/System.err: at com.tencent.kona.sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:456)
W/System.err: at com.tencent.kona.sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:427)
from tencentkonasmsuite.
@JupiterClyde1
这个异常非常粗略。或者你能看到服务端的详细日志吗?
造成握手失败的原因会有很多,比如使用了不支持的协议,不支持的密码套件,证书验证失败,....
不了解程序的细节以及错误详情,确实无法给出判断。
from tencentkonasmsuite.
@JupiterClyde1
与使用国密基础算法相比,TLCP安全通信的部署确实会复杂一些。而且国密的协议本身也有不太严谨的地方,不同家的现实之间的通信可能会有一些问题。
不过,我们与主流的阿里BabaSSL/Tongsuo,江南天安TASSL都打通了。所以,在实现的规范性方面,应该是有保证的。
建议参考我们的一些DEMO,其中有使用Apache HTTP client等主流Java客户端。
/Users/johnsjiang/work/jdk/
from tencentkonasmsuite.
你好 Demo 在哪??工程里面?
from tencentkonasmsuite.
@JackyKeke
工程里面这里有一些DEMO。
from tencentkonasmsuite.
Related Issues (20)
- Backport JDK-8334670: SSLSocketOutputRecord buffer miscalculation
- Update README for ShangMi features in Tencent Kona JDK
- Backport JDK-8333583: Crypto-XDH.generateSecret regression after JDK-8329538
- ClientHello阶段附加一些信息 HOT 7
- 我用gen_tlcp_certs.sh脚本生成证书,但证书还是不能使用;ssl命令没有用tongsuo用的最新的openssl;必须要用铜锁吗? HOT 12
- SM2EPossession should use the provided secure random
- Remove SSLUtils::getECKeyPairGenerator
- Remove key generator TlsRsaPremasterSecret
- Cleanup TLCP codes
- oracle jdk 1.8 201 报错 HOT 2
- tlcp在jdk8-201报错 ,jdk8-345没问题 HOT 7
- SSLEngineTest prints ssl logs
- ssl的前向安全性
- Upgrade gradle-build-action to version 3
- Bump version to 1.0.13
- Enhance SM3 engine performance
- Update version to 1.0.14-SNAPSHOT
- Upgrade Gradle to 8.9
- Backport JDK-8327538: The SSLExtension class specifies incorrect values for heartbeat per RFC 6520 and post_handshake_auth per RFC 8446
- Backport JDK-8322133: getParameterSpec(ECGenParameterSpec.class) on EC AlgorithmParameters does not return standard names HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tencentkonasmsuite.