使用network-bootstrapper生成node-info期望devMode = false的证书

时间:2018-07-05 05:35:53

标签: corda

我试图使用network-bootstrapper工具通过将node.conf文件作为输入传递给devMode = false来生成node-infos(如证书等),以下是我的node.conf文件:

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退出,下面是错误的屏幕截图: enter image description here

以下是生成的日志:

[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中,该文件夹尚不存在并且由引导程序工具本身生成?可以在devMode关闭的情况下帮助证书生成和使用network-bootstrapper.jar工具吗?

1 个答案:

答案 0 :(得分:2)

不能在devMode之外使用引导程序工具。在devMode之外,必须使用适当的证书和网络映射服务器。

此问题正在此处跟踪:https://r3-cev.atlassian.net/browse/CORDA-1735