如何在 Corda 3.1 中启用 TLS?

How to enable TLS in Corda 3.1?

在 Corda 节点上生产环境中配置 TLS 的正确方法是什么?

我们正在尝试在 CordaApp Sample 3.1 版 上启用 TLS,但 Corda 网络服务器出现以下错误:

[ERROR] 2018-05-03T13:58:16,984Z [main] Main.main - Exception during node startup {}
org.apache.activemq.artemis.api.core.ActiveMQConnectionTimedOutException: AMQ119013: Timed out waiting to receive cluster topology. Group:null
    at org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.java:804)

node.conf 文件是:

myLegalName="O=PartyA,L=London,C=GB"
p2pAddress="localhost:10005"
rpcSettings = {
    address="localhost:10006"
    adminAddress="localhost:10046"
    useSsl=true
    ssl {
        certificatesDirectory="./certificates"
        keyStorePassword="cordacadevpass"
        trustStorePassword="trustpass"
    }    
}
rpcUsers=[
    {
        password=test
        permissions=[
            ALL
        ]
        username=user1
    }
]
webAddress="localhost:10007"
devMode=true

根据Mike Hearn, from the Corda Ledger Slack channel, RPC SSL is broken in Corda 3.1 and the rework is being made in this pull request