IMServer-Openfire安装
文章内索引
[显示]
1.下载Openfire
openfire下载:http://www.igniterealtime.org/downloads/index.jsp
2、安装
双击EXE之后,点击Launch Admin进入web页面按照提示进行配置。
3、访问admin
安装好后,访问http://localhost:9090 可进入管理界面
4、使用spark测试服务是否正常
在高级设置中写入openfire的IP
点击注册帐号
错误:
1 2 3 4 5 6 7 8 9 |
二月 10, 2017 3:50:37 下午 org.jivesoftware.smack.AbstractXMPPConnection callConnectionClosedOnErrorListener 警告: Connection closed with error java.security.cert.CertificateException: Hostname verification of certificate failed. Certificate does not authenticate 192.168.1.114 at org.jivesoftware.smack.tcp.XMPPTCPConnection.proceedTLSReceived(XMPPTCPConnection.java:774) at org.jivesoftware.smack.tcp.XMPPTCPConnection.access$1000(XMPPTCPConnection.java:139) at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.parsePackets(XMPPTCPConnection.java:1022) at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.access$300(XMPPTCPConnection.java:956) at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader$1.run(XMPPTCPConnection.java:971) at java.lang.Thread.run(Unknown Source) |
是由于服务未启用ssl验证,在高级设置中将关闭本地证书验证选中后异常解决。
报如下错误是由于客户端没信任所有SSL,将Accept all certificates即可。
1 2 3 4 5 6 |
二月 10, 2017 3:52:09 下午 org.jivesoftware.smack.AbstractXMPPConnection callConnectionClosedOnErrorListener 警告: Connection closed with error javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.ssl.Alerts.getSSLException(Unknown Source) at sun.security.ssl.SSLSocketImpl.fatal(Unknown Source) at sun.security.ssl.Handshaker.fatalSE(Unknown Source) |
登录后
待解决:
openfire由于安全性验证,无法在客户端注册用户,只能在后台注册用户后由客户端登陆。
©版权声明:本文为【翰林小院】(huhanlin.com)原创文章,转载时请注明出处!
发表评论