java.lang.ClassCastException: org.bouncycastle.asn1.DERIA5String cannot be cast to org.bouncycastle.asn1.DERUTF8String

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Jive Software Open Source by Gaston Dombiak, 1 year ago
via Jive Software Open Source by Gaston Dombiak, 1 year ago
via Google Groups by Michael Weibel, 1 year ago
org.bouncycastle.asn1.DERTaggedObject cannot be cast to org.bouncycastle.asn1.ASN1Sequence
java.lang.ClassCastException: org.bouncycastle.asn1.DERIA5String cannot be cast to org.bouncycastle.asn1.DERUTF8String
at org.jivesoftware.util.CertificateManager.getSubjectAlternativeNames(CertificateManager.java:214)
at org.jivesoftware.util.CertificateManager.getPeerIdentities(CertificateManager.java:173)
at org.jivesoftware.util.CertificateManager.isCertificate(CertificateManager.java:299)
at org.jivesoftware.util.CertificateManager.isRSACertificate(CertificateManager.java:251)
at org.jivesoftware.openfire.http.HttpBindManager.createSSLConnector(HttpBindManager.java:140)
at org.jivesoftware.openfire.http.HttpBindManager.configureHttpBindServer(HttpBindManager.java:291)
at org.jivesoftware.openfire.http.HttpBindManager.restartServer(HttpBindManager.java:452)
at org.jivesoftware.openfire.http.HttpBindManager.access$600(HttpBindManager.java:39)
at org.jivesoftware.openfire.http.HttpBindManager$CertificateListener.certificateCreated(HttpBindManager.java:519)
at org.jivesoftware.util.CertificateManager.installCert(CertificateManager.java:543)
at org.jivesoftware.openfire.admin.import_002dcertificate_jsp._jspService(import_002dcertificate_jsp.java:113)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.