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

keytool不支持sm2算法吗? #41

Closed
shenxuebing opened this issue Jul 28, 2023 · 5 comments
Closed

keytool不支持sm2算法吗? #41

shenxuebing opened this issue Jul 28, 2023 · 5 comments
Assignees
Labels
question Further information is requested

Comments

@shenxuebing
Copy link

No description provided.

@johnshajiang johnshajiang self-assigned this Jul 29, 2023
@johnshajiang johnshajiang added the question Further information is requested label Jul 29, 2023
@johnshajiang
Copy link
Collaborator

johnshajiang commented Jul 30, 2023

@xuebing1995
Kona JDK目前没有支持国密算法,但我们提供了独立的Java组件TencentKonaSMSuite,支持了国密的密码学算法,包括SM2,SM3和SM4,也支持了国密安全通信协议,包括国密SSL/TLCP和TLS 1.3(RFC 8998)。
特别地,TencentKonaSMSuite提供了KeyTool工具类,它的功能与JDK的keytool工具相同,但针对证书和PKCS#12密钥库(keystore)支持了国密算法。
另外,它还额外提供了KeyStoreTool工具类,可以将已有的证书和私钥导入到密钥库中,也能够支持使用国密算法的证书和私钥。
具体用法,请参考相关的测试程序

@shenxuebing
Copy link
Author

感谢,那这个组件有集成到tomcat中使用国密SSL/TLCP和TLS 1.3(RFC 8998)的Demo或者示例吗?

@johnshajiang
Copy link
Collaborator

johnshajiang commented Jul 30, 2023

@shenxuebing
TencentKonaSMSuite中有一些Demo,其中包括有与Jetty,Netty和Apache HttpClient的集成,但还没有针对Tomcat的例子。
但基于相同的原理,就是要让Tomcat使用上TencentKonaSMSuite/KonsSSL的SSLContext实现。

如有更多关于TencentKonaSMSuite的问题,请移步到该项目的Issues中进行讨论。

@johnshajiang
Copy link
Collaborator

@shenxuebing
关于这个问题,我在TencentKonaSMSuite开了一个新的issue,后续请关注它的进展,也可以直接在那里进行讨论。

@johnshajiang
Copy link
Collaborator

johnshajiang commented Aug 16, 2023

@shenxuebing

关于这个问题,我在TencentKonaSMSuite开了一个新的issue,...

这个issue已解决。
TLSWithTomcatDemo展示了使用Tomcat 9与TencentKonaSMSuite进行TLS 1.3/RFC 8998通信。

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

No branches or pull requests

2 participants