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

国密SSL通信加密套件没有? #743

Open
EdgarLQS opened this issue Mar 25, 2021 · 0 comments
Open

国密SSL通信加密套件没有? #743

EdgarLQS opened this issue Mar 25, 2021 · 0 comments

Comments

@EdgarLQS
Copy link

问题来源:按照官方文档部署了国密版BCOS网络,使用web3sdk进行网络连接,在连接时会进行 SslContext 的初始化操作,代码如下

final SslContext sslContext = EncryptType.encryptType == 0 ? this.initSslContext() : this.initSMSslContext();

这里encryptType =1 得到了SMSslClientContext 返回为sslContext ,使用 sslContext.cipherSuites() 获取的加密套件如下,其中没有发现国密SSL通信的套件ECDHE_SM4_SM3 https://fisco-bcos-documentation.readthedocs.io/zh_CN/latest/docs/articles/3_features/36_cryptographic/national_cryptography_features.html

TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA
TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA
TLS_RSA_WITH_AES_128_GCM_SHA256
TLS_RSA_WITH_AES_128_CBC_SHA
TLS_RSA_WITH_AES_256_CBC_SHA

问题:若想查看国密的通信套件,请问在哪里查看呢? 非常感谢

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

1 participant