repchain2.0-update26:增加节点程序自动设置ssl的密钥配置。

This commit is contained in:
jiangbuyun 2022-05-27 21:45:30 +08:00
parent f4c45b51ba
commit eda5872f9f
6 changed files with 18 additions and 9 deletions

View File

@ -105,7 +105,8 @@ system {
genesis_node_name = "121000005l35120456.node1"
chain_cert_name = "951002007l78123233.super_admin"
chain_network_id = "net1" #组网id组网id的命名不能包含"_"这样的字符
chain_network_id = "identity-net" #组网id组网id的命名不能包含"_"这样的字符
basic_chain_id = "identity-net"
#api是否开启
#如果是单机多节点测试模式Repchain则选择0默认节点1会开启
ws_enable = 1#api 0,不开启;1,开启

View File

@ -105,10 +105,11 @@ system {
genesis_node_name = "121000005l35120456.node1"
chain_cert_name = "951002007l78123233.super_admin"
chain_network_id = "net1" #组网id组网id的命名不能包含"_"这样的字符
chain_network_id = "identity-net" #组网id组网id的命名不能包含"_"这样的字符
basic_chain_id = "identity-net"
#api是否开启
#如果是单机多节点测试模式Repchain则选择0默认节点1会开启
ws_enable = 0#api 0,不开启;1,开启
ws_enable = 1#api 0,不开启;1,开启
http_mode = 0 #http协议模式 0,http;1,https 默认使用http
#交易生产方式
trans_create_type = 1#0,手动;1,自动

View File

@ -105,10 +105,11 @@ system {
genesis_node_name = "121000005l35120456.node1"
chain_cert_name = "951002007l78123233.super_admin"
chain_network_id = "net1" #组网id组网id的命名不能包含"_"这样的字符
chain_network_id = "identity-net" #组网id组网id的命名不能包含"_"这样的字符
basic_chain_id = "identity-net"
#api是否开启
#如果是单机多节点测试模式Repchain则选择0默认节点1会开启
ws_enable = 0#api 0,不开启;1,开启
ws_enable = 1#api 0,不开启;1,开启
http_mode = 0 #http协议模式 0,http;1,https 默认使用http
#交易生产方式
trans_create_type = 1#0,手动;1,自动

View File

@ -105,10 +105,11 @@ system {
genesis_node_name = "121000005l35120456.node1"
chain_cert_name = "951002007l78123233.super_admin"
chain_network_id = "net1" #组网id组网id的命名不能包含"_"这样的字符
chain_network_id = "identity-net" #组网id组网id的命名不能包含"_"这样的字符
basic_chain_id = "identity-net"
#api是否开启
#如果是单机多节点测试模式Repchain则选择0默认节点1会开启
ws_enable = 0#api 0,不开启;1,开启
ws_enable = 1#api 0,不开启;1,开启
http_mode = 0 #http协议模式 0,http;1,https 默认使用http
#交易生产方式
trans_create_type = 1#0,手动;1,自动

View File

@ -105,7 +105,8 @@ system {
genesis_node_name = "121000005l35120456.node1"
chain_cert_name = "951002007l78123233.super_admin"
chain_network_id = "net1" #组网id组网id的命名不能包含"_"这样的字符
chain_network_id = "identity-net" #组网id组网id的命名不能包含"_"这样的字符
basic_chain_id = "identity-net"
#api是否开启
#如果是单机多节点测试模式Repchain则选择0默认节点1会开启
ws_enable = 1#api 0,不开启;1,开启

View File

@ -34,7 +34,11 @@ class RepChainConfig {
val userConfigFile = new File(ConfigFileDir+this.systemName+ File.separator+"system.conf")
this.sysConf = ConfigFactory.load()
if (userConfigFile.exists()) {
val combined_conf = ConfigFactory.parseFile(userConfigFile).withFallback(this.sysConf)
val myConfig =
ConfigFactory.parseString("akka.remote.artery.ssl.config-ssl-engine.key-store = \"jks/" + this.systemName +
".jks\"")
var combined_conf = ConfigFactory.parseFile(userConfigFile).withFallback(this.sysConf)
combined_conf = myConfig.withFallback(combined_conf)
this.sysConf = ConfigFactory.load(combined_conf)
} else{
RepLogger.trace(RepLogger.System_Logger, this.systemName + " ~ " + "ClusterSystem" + "~" + " custom configuration file not exist")