When using JDK8 (manifests under Ubuntu, haven't checked different environments) during generating of self-signed certificate following exception is thrown:
2014-05-05 11:16:27.353 [in_0-c2s] SSLContextContainer.getSSLContext() SEVERE: Can not initialize SSLContext for domain: vhost.tld, 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:189)
at tigase.io.SSLContextContainer.getSSLContext(SSLContextContainer.java:336)
at tigase.io.SSLContextContainer.getSSLContext(SSLContextContainer.java:272)
at tigase.io.TLSUtil.getSSLContext(TLSUtil.java:121)
at tigase.net.IOService.startTLS(IOService.java:443)
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)
Andrzej Wójcik (Tigase) commented 1 decade ago
Applied in changeset tigase-utils|commit:90df4226de434d6d5186a07662f29fd9675a3a1c.
Andrzej Wójcik (Tigase) commented 1 decade ago
This issue was caused by a change of internal JVM API which we are using to generate self-signed certificate. I fixed this issue and added unit test to check this on every build.
When using JDK8 (manifests under Ubuntu, haven't checked different environments) during generating of self-signed certificate following exception is thrown: