FISCO-BCOS / web3sdk

java sdk for FISCO BCOS(deprecated, please use FISCO-BCOS/java-sdk)
Apache License 2.0
117 stars 86 forks source link

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

Open EdgarLQS opened 3 years ago

EdgarLQS commented 3 years ago

问题来源:按照官方文档部署了国密版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

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