Consultor Eletrônico



Kbase 22129: SonicMQ: ClassCastException with PKCS12 certificate
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   20/02/2003
SUMMARY:

This Knowledgebase applies to SonicMQ versions 3.x and 4.x. If you incorrectly export a certificate that you intend to be a PKCS12 certificate, you will get the following exception when you try to start the broker:

iaik.pkcs.PKCSParsingException: java.lang.ClassCastException: java.lang.Object
at iaik.pkcs.pkcs12.PKCS12.decode(Unknown Source)
at iaik.pkcs.pkcs12.PKCS12.<init>(Unknown Source)
at progress.message.net.ssl.iaik.ddb.TNB_(:239)
at progress.message.net.ssl.iaik.ddb.SNB_(:97)
at progress.message.net.ssl.iaik.iaikSSLServerControl.configureKeyAndCer
tificate(:46)
at progress.message.net.ssl.kbb.kJB_(:103)
at progress.message.net.ssl.kbb.<init>(:34)
at progress.message.net.ssl.ProgressSslSocketFactory.createProgressServe
rSocket(:140)
at progress.message.broker.Acceptor.js_(:83)
at progress.message.broker.Acceptor.<init>(:57)
at progress.message.broker.Broker.vF_(:715)
at progress.message.broker.Broker.<init>(:406)
at progress.message.broker.Broker.main(:243)
progress.message.util.EAssertFailure: Unable to install certificate or private key
at progress.message.net.ssl.kbb.kJB_(:108)
at progress.message.net.ssl.kbb.<init>(:34)
at progress.message.net.ssl.ProgressSslSocketFactory.createProgressServe
rSocket(:140)
at progress.message.broker.Acceptor.js_(:83)
at progress.message.broker.Acceptor.<init>(:57)
at progress.message.broker.Broker.vF_(:715)
at progress.message.broker.Broker.<init>(:406)
at progress.message.broker.Broker.main(:243)

SOLUTION:

This exception occurs if you exported as type X509, instead of PKCS12. Return to Explorer, and on the Export tab, make sure that the Format line reads PKCS12, not X509.