1 Reply Latest reply on Nov 20, 2015 12:07 PM by stephen.carville

    Unable to import New CA

    stephen.carville

      This is on version 7.4.2.11.0

       

      I created a new CA for the MITM but when trying to import it I get the error "No certificate or private key found"

       

      I can verify that the key and cert files exist and are correct so the error is a mystery to me.

       

      $ openssl x509 -noout -modulus -in lereta.mcafee.mitm.crt |md5sum; openssl rsa -noout -modulus -in lereta.mcafee.mitm.pem |md5sum

       

      52375dc2d266ab16ff6777befccf98d5  -

      52375dc2d266ab16ff6777befccf98d5  -

       

      Details of the error

       

      Stack trace: com.scur.k.shared.exceptions.KClientServerException: No certificate or private key found

          at com.scur.k.app.communication.ServerRequest.callServerFunction(ServerRequest.jav a:316)

          at com.scur.k.app.communication.ServerRequest.callServerFunction(ServerRequest.jav a:293)

          at com.scur.k.app.communication.ServerRequest.decryptPrivateKey(ServerRequest.java :1504)

          at com.scur.k.app.configuration.ImportPrivateKeyPanel.attemptImport(ImportPrivateK eyPanel.java:232)

          at com.scur.k.app.configuration.ImportCertificateWithKeyDialog.importFiles(ImportC ertificateWithKeyDialog.java:196)

          at com.scur.k.app.configuration.ImportDialog.tryImport(ImportDialog.java:111)

          at com.scur.k.app.configuration.ImportDialog.buttonOkActionPerformed(ImportDialog. java:104)

          at com.scur.k.app.configuration.ImportDialog.access$000(ImportDialog.java:45)

          at com.scur.k.app.configuration.ImportDialog$1.actionPerformed(ImportDialog.java:2 18)

          at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2012)

          at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2335)

          at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:404)

          at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)

          at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.ja va:252)

          at java.awt.Component.processMouseEvent(Component.java:6288)

          at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)

          at java.awt.Component.processEvent(Component.java:6053)

          at java.awt.Container.processEvent(Container.java:2045)

          at java.awt.Component.dispatchEventImpl(Component.java:4649)

          at java.awt.Container.dispatchEventImpl(Container.java:2103)

          at java.awt.Component.dispatchEvent(Component.java:4475)

          at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4633)

          at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4297)

          at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4227)

          at java.awt.Container.dispatchEventImpl(Container.java:2089)

          at java.awt.Window.dispatchEventImpl(Window.java:2588)

          at java.awt.Component.dispatchEvent(Component.java:4475)

          at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:687)

          at java.awt.EventQueue.access$400(EventQueue.java:96)

          at java.awt.EventQueue$2.run(EventQueue.java:646)

          at java.awt.EventQueue$2.run(EventQueue.java:644)

          at java.security.AccessController.doPrivileged(Native Method)

          at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlConte xt.java:108)

          at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlConte xt.java:119)

          at java.awt.EventQueue$3.run(EventQueue.java:660)

          at java.awt.EventQueue$3.run(EventQueue.java:658)

          at java.security.AccessController.doPrivileged(Native Method)

          at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlConte xt.java:108)

          at java.awt.EventQueue.dispatchEvent(EventQueue.java:657)

          at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:27 5)

          at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)

          at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:194)

          at java.awt.Dialog$1.run(Dialog.java:1079)

          at java.awt.Dialog$3.run(Dialog.java:1133)

          at java.security.AccessController.doPrivileged(Native Method)

          at java.awt.Dialog.show(Dialog.java:1131)

          at java.awt.Component.show(Component.java:1571)

          at java.awt.Component.setVisible(Component.java:1523)

          at java.awt.Window.setVisible(Window.java:952)

          at java.awt.Dialog.setVisible(Dialog.java:1013)

          at com.scur.k.app.widgets.KDialogEscapeEnter.setVisible(KDialogEscapeEnter.java:62 )

          at com.scur.k.app.uiactions.ImportCertificateAction.actionPerformed(ImportCertific ateAction.java:58)

          at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2012)

          at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2335)

          at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:404)

          at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)

          at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.ja va:252)

          at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)

          at java.awt.Component.processMouseEvent(Component.java:6288)

          at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)

          at java.awt.Component.processEvent(Component.java:6053)

          at java.awt.Container.processEvent(Container.java:2045)

          at java.awt.Component.dispatchEventImpl(Component.java:4649)

          at java.awt.Container.dispatchEventImpl(Container.java:2103)

          at java.awt.Component.dispatchEvent(Component.java:4475)

          at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4633)

          at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4297)

          at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4227)

          at java.awt.Container.dispatchEventImpl(Container.java:2089)

          at java.awt.Component.dispatchEvent(Component.java:4475)

          at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:687)

          at java.awt.EventQueue.access$400(EventQueue.java:96)

          at java.awt.EventQueue$2.run(EventQueue.java:646)

          at java.awt.EventQueue$2.run(EventQueue.java:644)

          at java.security.AccessController.doPrivileged(Native Method)

          at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlConte xt.java:108)

          at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlConte xt.java:119)

          at java.awt.EventQueue$3.run(EventQueue.java:660)

          at java.awt.EventQueue$3.run(EventQueue.java:658)

          at java.security.AccessController.doPrivileged(Native Method)

          at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlConte xt.java:108)

          at java.awt.EventQueue.dispatchEvent(EventQueue.java:657)

          at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:27 5)

          at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)

          at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:19 0)

          at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)

          at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)

          at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)

      Caused by: java.io.IOException: No certificate or private key found

          at com.scur.k.shared.utils.UtilsJCA.readPEM(UtilsJCA.java:113)

          at com.scur.k.server.ServerFunctionHandler.processServerFunction(ServerFunctionHan dler.java:512)

          at com.scur.k.server.Request.doPost(Request.java:114)

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil terChain.java:290)

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain .java:206)

          at com.scur.k.server.filter.AuthenticationFilter.handleNeedsAuthentication(Authent icationFilter.java:109)

          at com.scur.k.server.filter.AuthenticationFilter.doFilterHttpServet(Authentication Filter.java:81)

          at com.scur.k.server.filter.AuthenticationFilter.doFilter(AuthenticationFilter.jav a:68)

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil terChain.java:235)

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain .java:206)

          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 233)

          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java: 191)

          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)

          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:10 9)

          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)

          at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:879 )

          at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http 11AprProtocol.java:600)

          at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1703)

          at java.lang.Thread.run(Thread.java:745)