Projects tigase _server server-core Issues #862
There have an error on console When startup the server with a self-signed certificate. (#862)
来恩 周 opened 7 years ago
Due Date
2017-07-19

Hi, all:

When I start the server with a self-signed certificate, there have an error.

The self-signed certificate generate by this tutorial http://docs.tigase.org/tigase-server/snapshot/Administration_Guide/html_chunk/ServerCertificates.html

error detail is:

2017-07-19 19:37:54.713 [main] DNSResolverDefault.() WARNING: Resolving default host name: bogon took: 4

Loading component: vhost-man :: componentInfo{Class=tigase.vhosts.VHostManager}

Loading component: amp :: componentInfo{Class=tigase.server.amp.AmpComponent}

2017-07-19 19:37:55.655 [main] CertificateContainer.initialize() WARNING: Cannot load certficate from file: /Users/admin/develop/certs/tigase/192.168.199.20.crt

java.security.KeyStoreException: Cannot store non-PrivateKeys

at sun.security.provider.JavaKeyStore.engineSetKeyEntry(JavaKeyStore.java:250)

at sun.security.provider.JavaKeyStore$JKS.engineSetKeyEntry(JavaKeyStore.java:55)

at java.security.KeyStore.setKeyEntry(KeyStore.java:1128)

at tigase.io.CertificateContainer.addCertificateEntry(CertificateContainer.java:91)

at tigase.io.CertificateContainer.initialize(CertificateContainer.java:408)

at tigase.kernel.core.Kernel.initBean(Kernel.java:157)

at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:582)

at tigase.kernel.core.Kernel.initBean(Kernel.java:152)

at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:582)

at tigase.kernel.core.Kernel.injectDependency(Kernel.java:770)

at tigase.kernel.core.Kernel$DelayedDependenciesInjection.inject(Kernel.java:1373)

at tigase.kernel.core.Kernel.finishDependecyDelayedInjection(Kernel.java:1035)

at tigase.kernel.core.Kernel.initBean(Kernel.java:148)

at tigase.kernel.core.Kernel.injectDependencies(Kernel.java:582)

at tigase.kernel.core.Kernel.initBean(Kernel.java:152)

at tigase.kernel.core.Kernel.getInstance(Kernel.java:388)

at tigase.server.Bootstrap.start(Bootstrap.java:148)

at tigase.server.XMPPServer.start(XMPPServer.java:136)

at tigase.server.XMPPServer.main(XMPPServer.java:117)

Loading component: bosh :: componentInfo{Class=tigase.server.bosh.BoshConnectionManager}

Loading component: stats :: componentInfo{Class=tigase.stats.StatisticsCollector}

Loading plugin: urn:xmpp:csi:0=4:1193 ...

Andrzej Wójcik (Tigase) commented 7 years ago

This is not a bug of a server but an error being reported by the server due to provided wrong SSL certificate file. According to our documentation, you should create PEM file and provide it, while you provided CRT file.

For general questions and questions about configuration of Tigase XMPP Server please use our forums.

issue 1 of 1
Type
Bug
Priority
Major
Assignee
RedmineID
5825
Version
tigase-server-8.0.0
Spent time
1h 15m
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/server-core#862
Please wait...
Page is in error, reload to recover