使用network-bootstrapper生成node-info期望devMode = false的证书 [英] using network-bootstrapper to generate node-info expects certificates with devMode=false
问题描述
我正在尝试使用network-bootstrapper工具通过将node.conf文件作为输入传递给devMode = false来生成node-infos(例如证书等),以下是我的node.conf文件:
I am trying to use network-bootstrapper tool to generate node-infos(like certificates etc) by passing node.conf file as input with devMode=false, following is my node.conf file:
myLegalName="O=Bank,L=Paris,C=FR"
p2pAddress="localhost:10011"
devMode=false
rpcSettings {
address="localhost:10012"
adminAddress="localhost:10052"
}
security {
authService {
dataSource {
type=INMEMORY
users=[
{
password=test
permissions=[
ALL
]
user=user3
}
]
}
}
}
我将node.conf文件的路径作为参数传递给bootsrapper.jar,但是它以错误代码1退出,下面是错误的屏幕截图:
I am passing the path of node.conf file as an argument to the bootsrapper.jar, but it is exiting with error code 1, below is the screenshot of the error:
以下是生成的日志:
[INFO ] 2018-07-04T14:19:21,901Z [main] internal.Node.generateAndSaveNodeInfo - Generating nodeInfo ... {}
[ERROR] 2018-07-04T14:19:21,901Z [main] internal.Node.validateKeystore - IO exception while trying to validate keystore {}
java.nio.file.NoSuchFileException: C:\corda\work\keys- gen\Bank\certificates\sslkeystore.jks
......
......
还有
[ERROR] 2018-07-04T14:19:21,917Z [main] internal.Node.run - Exception during node startup {}
java.lang.IllegalArgumentException: Identity certificate not found. Please either copy your existing identity key and certificate from another node, or if you don't have one yet, fill out the config file and run corda.jar --initial- registration. Read more at: https://docs.corda.net/permissioning.html
......
......
能否让我知道如何生成证书并将其放置在文件夹 {workspace}/{nodeName}/certificates
中,该文件夹尚不存在,并且由bootstrapper工具本身生成?可以在devMode关闭的情况下帮助证书生成和使用network-bootstrapper.jar工具吗?
Can you please let me know how to generate certificates and place it already inside the folder {workspace}/{nodeName}/certificates
which already does not exists and is being generated by the bootstrapper tool itself? can you help with certificate generation and usage of network-bootstrapper.jar tool with devMode turned off?
推荐答案
不能在 devMode
之外使用bootstrapper工具.在 devMode
之外,必须使用适当的证书和网络映射服务器.
The bootstrapper tool can't be used outside of devMode
. Outside of devMode
, proper certificates and a network map server must be used.
此问题正在此处跟踪: https://r3-cev.atlassian.net/browse/CORDA-1735 .
This issue is being tracked here: https://r3-cev.atlassian.net/browse/CORDA-1735.
这篇关于使用network-bootstrapper生成node-info期望devMode = false的证书的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!