我计划生成证书并在Corda网络中注册节点的标识。我使用了此网址http://testnet.certificate.corda.net
,但如果我使用java -jar corda.jar
触发命令(--initial-registration
),则会引发异常。
这是堆栈跟踪:
Submitting certificate signing request to Corda certificate signing server.
Exception in thread "main" java.net.UnknownHostException: cordaci-netperm.corda.
r3cev.com
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.security.ssl.SSLSocketImpl.connect(Unknown Source)
at sun.security.ssl.BaseSSLSocketImpl.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.protocol.https.HttpsClient.<init>(Unknown Source)
at sun.net.www.protocol.https.HttpsClient.New(Unknown Source)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewH
ttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(Unknown Sou
rce)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Sour
ce)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect
(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(Unknown
Source)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown S
ource)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(Unk
nown Source)
at net.corda.node.utilities.registration.HTTPNetworkRegistrationService.
submitRequest(HTTPNetworkRegistrationService.kt:51)
at net.corda.node.utilities.registration.NetworkRegistrationHelper.submi
tOrResumeCertificateSigningRequest(NetworkRegistrationHelper.kt:142)
at net.corda.node.utilities.registration.NetworkRegistrationHelper.build
Keystore(NetworkRegistrationHelper.kt:61)
at net.corda.node.internal.NodeStartup.maybeRegisterWithNetworkAndExit(N
odeStartup.kt:148)
at net.corda.node.internal.NodeStartup.run(NodeStartup.kt:69)
at net.corda.node.Corda.main(Corda.kt:11)
答案 0 :(得分:0)