Skip to content

Commit 93f347d

Browse files
authored
Merge pull request #322 from FISCO-BCOS/release-2.8.0
Release 2.8.0
2 parents 842efae + d1f2e65 commit 93f347d

File tree

5 files changed

+18
-371
lines changed

5 files changed

+18
-371
lines changed

Changelog.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
## v2.8.0
22
(2021-07-27)
33
Added:
4-
* Add Hardware Secure Module(HSM), use hardware protect your private key, speed up crypto procedure.
4+
* Using Hardware Secure Module(HSM) to make cryptography operations.
55
* Support use PCI crypto card or crypto machine to make SM2 SM3 calculation.
6-
* Support use HSM internal key to make TLS connection with FISCO BCOS nodes.
76
* Support use HSM internal key to sign transaction.
87

98
Update:
@@ -14,9 +13,8 @@ Update:
1413

1514
----
1615
添加:
17-
* 新增硬件加密模块,使用硬件保护您的私钥,提升密码运算速度。
18-
* 支持使用PCI加密卡/加密机进行SM2,SM3运算。
19-
* 支持使用密码卡/密码机内部密钥与FISCO BCOS节点建立连接。
16+
* 新增支持使用硬件加密模块进行密码计算。
17+
* 支持使用符合国密《GMT0018-2012密码设备应用接口规范》标准的PCI加密卡/加密机进行SM2,SM3运算。
2018
* 支持使用密码卡/密码机内部密钥进行交易签名。
2119

2220
更新:

build-hsm.gradle

Lines changed: 0 additions & 322 deletions
This file was deleted.

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ ext {
3737
// integrationTest.mustRunAfter test
3838
allprojects {
3939
group = 'org.fisco-bcos.java-sdk'
40-
version = '2.8.0-SNAPSHOT'
40+
version = '2.8.0-GMT0018-SNAPSHOT'
4141
apply plugin: 'maven'
4242
apply plugin: 'maven-publish'
4343
apply plugin: 'idea'

sdk-core/src/main/java/org/fisco/bcos/sdk/network/ConnectionManager.java

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -266,27 +266,12 @@ private SslContext initSMSslContext(ConfigOption configOption) throws NetworkExc
266266
try {
267267
// Get file, file existence is already checked when check config file.
268268
// Init SslContext
269-
logger.info(" build SM ssl context with configured certificates ");
270-
if (configOption.getCryptoMaterialConfig().getCryptoProvider() != null
271-
&& configOption
272-
.getCryptoMaterialConfig()
273-
.getCryptoProvider()
274-
.equalsIgnoreCase(HSM)) {
275-
return SMSslClientContextFactory.build(
276-
configOption.getCryptoMaterialConfig().getCaInputStream(),
277-
configOption.getCryptoMaterialConfig().getEnSSLCertInputStream(),
278-
"sm2_" + configOption.getCryptoMaterialConfig().getEnSslKeyIndex(),
279-
configOption.getCryptoMaterialConfig().getSdkCertInputStream(),
280-
"sm2_" + configOption.getCryptoMaterialConfig().getSslKeyIndex());
281-
} else {
282-
return SMSslClientContextFactory.build(
283-
configOption.getCryptoMaterialConfig().getCaInputStream(),
284-
configOption.getCryptoMaterialConfig().getEnSSLCertInputStream(),
285-
configOption.getCryptoMaterialConfig().getEnSSLPrivateKeyInputStream(),
286-
configOption.getCryptoMaterialConfig().getSdkCertInputStream(),
287-
configOption.getCryptoMaterialConfig().getSdkPrivateKeyInputStream());
288-
}
289-
269+
return SMSslClientContextFactory.build(
270+
configOption.getCryptoMaterialConfig().getCaInputStream(),
271+
configOption.getCryptoMaterialConfig().getEnSSLCertInputStream(),
272+
configOption.getCryptoMaterialConfig().getEnSSLPrivateKeyInputStream(),
273+
configOption.getCryptoMaterialConfig().getSdkCertInputStream(),
274+
configOption.getCryptoMaterialConfig().getSdkPrivateKeyInputStream());
290275
} catch (Exception e) {
291276
if (configOption.getCryptoMaterialConfig().getCryptoProvider().equalsIgnoreCase(HSM)) {
292277
logger.error(

0 commit comments

Comments
 (0)