Projects tigase _server tigase-utils Issues #6
CertificateException: Issuer class type invalid. under JDK8 (#6)
Closed
wojciech.kapcia@tigase.net opened 1 decade ago
Due Date
2017-01-04

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.

issue 1 of 1
Type
Bug
Priority
Normal
Assignee
RedmineID
1956
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/tigase-utils#6
Please wait...
Page is in error, reload to recover