Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/356.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ssl/3.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
Java 握手期间远程主机关闭连接-帮助noob_Java_Ssl_Keytool_Handshake - Fatal编程技术网

Java 握手期间远程主机关闭连接-帮助noob

Java 握手期间远程主机关闭连接-帮助noob,java,ssl,keytool,handshake,Java,Ssl,Keytool,Handshake,任何人都可以告诉我是什么导致了这一切: pi@raspberrypi ~/openhab $ sudo ./start.sh Launching the openHAB runtime... osgi> 00:09:50.841 INFO o.o.c.internal.CoreActivator[:92] - openHAB runtime has been started (v1.3.1). 00:10:26.588 INFO o.o.m.c.i.ModelRepositoryImp

任何人都可以告诉我是什么导致了这一切:

pi@raspberrypi ~/openhab $ sudo ./start.sh
Launching the openHAB runtime...
osgi> 00:09:50.841 INFO  o.o.c.internal.CoreActivator[:92] - openHAB runtime has been started (v1.3.1).
00:10:26.588 INFO  o.o.m.c.i.ModelRepositoryImpl[:99] - Loading model 'test.items'
00:10:35.225 INFO  o.o.i.s.i.DiscoveryServiceImpl[:92] - mDNS service has been started
00:10:42.865 INFO  o.o.m.c.i.ModelRepositoryImpl[:99] - Loading model 'test.sitemap'
00:10:57.579 INFO  o.o.i.r.i.RESTApplication[:158] - Started REST API at /rest
00:11:03.592 INFO  o.o.u.w.i.s.WebAppServlet[:99] - Started Classic UI at /openhab.app
00:11:18.138 INFO  o.o.b.i.internal.IhcConnection[:139] - Connecting to IHC / ELKO LS controller [IP='192.168.1.20:443' Username='admin' Password='pass'].
00:11:23.928 ERROR o.o.b.i.internal.IhcConnection[:188] - Connection to IHC / ELKO LS controller failed.
**javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
        at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:973)
Caused by: java.io.EOFException: SSL peer shut down incorrectly
        at sun.security.ssl.InputRecord.read(InputRecord.java:505)**
00:11:24.032 INFO  o.o.c.s.AbstractActiveService[:189] - IHC / ELKO LS refresh and notification listener service has been started
00:12:02.482 INFO  o.o.i.r.i.RESTApplication[:174] - Stopped REST API
00:12:06.826 INFO  o.o.u.w.i.s.WebAppServlet[:110] - Stopped Classic UI

我觉得是证书验证问题造成的。是使用CA签名证书还是自签名证书?如果您没有任何证书,请使用java密钥工具生成您自己的证书


关于这一点的更多细节将有所帮助

请发布整个堆栈跟踪。把它编辑成你的问题。