While importing a .pem format trusted certificate into Designer to be used in BW, the import fails with the following: “com.tibco.security.AXSecurityException: No certificates encoded in supported ways were found” exception.

While importing a .pem format trusted certificate into Designer to be used in BW, the import fails with the following: “com.tibco.security.AXSecurityException: No certificates encoded in supported ways were found” exception.

book

Article ID: KB0088381

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks -
Not Applicable -

Description

Resolution:
Description:

When importing the trusted certificate, import fails.

Environment:

TIBCO ActiveMatrix BusinessWorks – All versions
TIBCO Enterprise Message Service – All versions
All H/W and O/S platforms

Symptoms:

Designer console will print the following stack trace.

com.tibco.security.AXSecurityException: No certificates encoded in supported ways were found
    at com.tibco.security.CertUtils.streamToCerts(CertUtils.java:634)
    at com.tibco.ae.tools.palettes.generalpalette.ImportTrustedCertCommand.buttonPressed(ImportTrustedCertAction.java:133)
    at com.tibco.ae.designerapi.forms.ConfigForm.actionPerformed(ConfigForm.java:1326)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
    at java.awt.Component.processMouseEvent(Component.java:5517)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
    at java.awt.Component.processEvent(Component.java:5282)
    at java.awt.Container.processEvent(Container.java:1966)
    at java.awt.Component.dispatchEventImpl(Component.java:3984)
    at java.awt.Container.dispatchEventImpl(Container.java:2024)
    at java.awt.Component.dispatchEvent(Component.java:3819)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
    at java.awt.Container.dispatchEventImpl(Container.java:2010)
    at java.awt.Window.dispatchEventImpl(Window.java:1791)
    at java.awt.Component.dispatchEvent(Component.java:3819)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
    at java.awt.Dialog$1.run(Dialog.java:535)
    at java.awt.Dialog$2.run(Dialog.java:565)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.awt.Dialog.show(Dialog.java:563)
    at java.awt.Component.show(Component.java:1302)
    at java.awt.Component.setVisible(Component.java:1255)
    at com.tibco.ae.designerapi.forms.ConfigFormDialog.setVisible(ConfigFormDialog.java:139)
    at com.tibco.ae.tools.palettes.generalpalette.ImportTrustedCertCommand.execute(ImportTrustedCertAction.java:71)
    at com.tibco.ae.designerapi.actions.GenericDesignerAction.performAction(GenericDesignerAction.java:382)
    at com.tibco.ae.designerapi.actions.GenericDesignerAction.actionPerformed(GenericDesignerAction.java:300)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
    at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
    at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1051)
    at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1092)
    at java.awt.Component.processMouseEvent(Component.java:5517)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
    at java.awt.Component.processEvent(Component.java:5282)
    at java.awt.Container.processEvent(Container.java:1966)
    at java.awt.Component.dispatchEventImpl(Component.java:3984)
    at java.awt.Container.dispatchEventImpl(Container.java:2024)
    at java.awt.Component.dispatchEvent(Component.java:3819)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
    at java.awt.Container.dispatchEventImpl(Container.java:2010)
    at java.awt.Window.dispatchEventImpl(Window.java:1791)
    at java.awt.Component.dispatchEvent(Component.java:3819)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Caused by: com.tibco.security.AXSecurityException: java.security.cert.CertificateException: ASN1: INTEGER does not support getComponentAt(int)!
    at com.tibco.security.impl.entrust61.CertImpl.init(CertImpl.java:49)
    at com.tibco.security.CertFactory.createCert(CertFactory.java:38)
    at com.tibco.security.CertUtils.streamToCerts(CertUtils.java:626)
    ... 61 more
Caused by: java.security.cert.CertificateException: ASN1: INTEGER does not support getComponentAt(int)!
    at iaik.x509.X509Certificate.a(Unknown Source)
    at iaik.x509.X509Certificate.decode(Unknown Source)
    at iaik.x509.X509Certificate.&ltinit>(Unknown Source)
    at com.tibco.security.impl.entrust61.CertImpl.init(CertImpl.java:47)
    ... 63 more

Cause:
======
This exception is due to a certificate encoding issue, i.e., the trusted certificate has not been correctly encoded in .pem format.

Resolution:
=========
In most situations the certificate has to be re-created if the certificate has not been created in .pem format. However, if the certificate format is correct and the same exception is seen, open the .pem file with an advanced Text processor like Notepad++, TextPlus or EditPlus, convert it in UTF8 format and save it.

Issue/Introduction

While importing a .pem format trusted certificate into Designer to be used in BW, the import fails with the following: “com.tibco.security.AXSecurityException: No certificates encoded in supported ways were found” exception.