Project

General

Profile

SEVERE: Can not initialize SSLContext for domain:testdomain.com, protocol: TLS

seb gut
Added over 4 years ago

I just installed tigase 5.2.1 on an ubuntu server with MYSQL. The console installation was successful. Now I try to log in with the admin user and I get this error:

2014-05-03 22:15:02.704 [in_2-c2s] SSLContextContainer.getSSLContext() SEVERE: Can not initialize SSLContext for domain: testdomain.com, protocol: TLS

java.security.cert.CertificateException: Issuer class type invalid.

at sun.security.x509.X509CertInfo.setIssuer(X509CertInfo.java:860)

at sun.security.x509.X509CertInfo.set(X509CertInfo.java:403)

at tigase.cert.CertificateUtil.createSelfSignedCertificate(CertificateUtil.java:237)

at tigase.io.SSLContextContainer.getSSLContext(SSLContextContainer.java:325)

at tigase.io.SSLContextContainer.getSSLContext(SSLContextContainer.java:272)

at tigase.io.TLSUtil.getSSLContext(TLSUtil.java:121)

at tigase.net.IOService.startTLS(IOService.java:435)

at tigase.server.xmppclient.ClientConnectionManager.processCommand(ClientConnectionManager.java:888)

at tigase.server.xmppclient.ClientConnectionManager.processPacket(ClientConnectionManager.java:156)

at tigase.server.AbstractMessageReceiver$QueueListener.run(AbstractMessageReceiver.java:1475)

Of course, testdomain.com is not the real domain, just changed it for this forum post.

Any ideas?

Thanks

Seb.


Replies (6)

Added by Wojciech Kapcia TigaseTeam over 4 years ago

What version of Ubuntu and Java do you use to run Tigase?

It looks like it's related to JDK8, I've created relevant ticket #1956

Added by seb gut over 4 years ago

Java version:

java version "1.8.0_05"

Java(TM) SE Runtime Environment (build 1.8.0_05-b13)

Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode)

Ubuntu Version:

"Ubuntu 14.04 LTS"

Added by lv yulin over 4 years ago

java version "1.8.0_11"

Java(TM) SE Runtime Environment (build 1.8.0_11-b12)

Java HotSpot(TM) 64-Bit Server VM (build 25.11-b03, mixed mode)

Ubuntu Version:

"Ubuntu 14.04 LTS"

has the same problem!

Added by lv yulin over 4 years ago

java version "1.8.0_11"

Java(TM) SE Runtime Environment (build 1.8.0_11-b12)

Java HotSpot(TM) 64-Bit Server VM (build 25.11-b03, mixed mode)

Ubuntu Version:

"Ubuntu 14.04 LTS"

has the same problem!

Added by Andrzej Wójcik IoT 1 CloudTigaseTeam over 4 years ago

JDK 8 contains major change in internal JDK security API used for automatic self-signed certificate generation by Tigase XMPP Server and fix for this issue is in current development version 5.3.0-SNAPSHOT. To use JDK 8 I would suggest use of Tigase XMPP Server 5.3.0-SNAPSHOT as it contains also fixes for other changes introduced by JDK8.

If you would like to stick to version 5.2.1, then I would suggest to downgrade JDK to latest version JDK7 or you will need to generate self-signed certificate in other way (ie. using openssl)

Added by lv yulin over 4 years ago

thank you for your response.

i change to jdk7

best regards

At 2014-08-16 02:47:50, support@tigase.org wrote:

https://projects.tigase.org/boards/15/topics/2049?r=2910#message-2910

Andrzej Wójcik

JDK 8 contains major change in internal JDK security API used for automatic self-signed certificate generation by Tigase XMPP Server and fix for this issue is in current development version 5.3.0-SNAPSHOT. To use JDK 8 I would suggest use of Tigase XMPP Server 5.3.0-SNAPSHOT as it contains also fixes for other changes introduced by JDK8.

If you would like to stick to version 5.2.1, then I would suggest to downgrade JDK to latest version JDK7 or you will need to generate self-signed certificate in other way (ie. using openssl)

    (1-6/6)