Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/cmake/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Corda 使用网络引导程序生成节点信息需要devMode=false的证书_Corda - Fatal编程技术网

Corda 使用网络引导程序生成节点信息需要devMode=false的证书

Corda 使用网络引导程序生成节点信息需要devMode=false的证书,corda,Corda,我试图使用网络引导工具生成节点信息(如证书等),方法是将node.conf文件作为devMode=false的输入传递,下面是我的node.conf文件: myLegalName="O=Bank,L=Paris,C=FR" p2pAddress="localhost:10011" devMode=false rpcSettings { address="localhost:10012" adminAddress="localhost:10052" } security {

我试图使用网络引导工具生成节点信息(如证书等),方法是将node.conf文件作为devMode=false的输入传递,下面是我的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,下面是错误的屏幕截图:

以下是生成的日志:

[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
......
......


您能告诉我如何生成证书并将其放在文件夹
{workspace}/{nodeName}/certificates
中吗?该文件夹已经不存在,并且正在由引导工具本身生成?在devMode关闭的情况下,您能帮助生成证书和使用network-bootstrapper.jar工具吗?

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

正在此处跟踪此问题:

[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
......
......