Exception opening .ks
scop opened this issue · 2 comments
Hello,
don't know if this is exactly a bug, anyway: I'm trying to open a keystore file (.ks) generated by a previous java version (probably 1.5 or earlier) in order to convert it into a .pfx certfile.
I select the keystore.ks on filechooser opened by pressing Ctrl-O, then the password prompt is shown but when I type the password (the right password...) an exception is thrown (I appendend to this message the details).
I know this is probably a keystore file problem because I imagine you tested your software with a lot of keystore files. Anyway I'm hoping you can help me to solve my problem.
Thanks in advance.
Giacomo Galletto
java.lang.ClassCastException: org.bouncycastle.asn1.DERSequence cannot be cast to org.bouncycastle.asn1.DERInteger
org.bouncycastle.asn1.pkcs.Pfx.<init>(Unknown Source)
org.bouncycastle.jce.provider.JDKPKCS12KeyStore.engineLoad(Unknown Source)
java.security.KeyStore.load(Unknown Source)
net.sf.portecle.crypto.KeyStoreUtil.loadKeyStore(KeyStoreUtil.java:303)
net.sf.portecle.FPortecle.openKeyStoreFile(FPortecle.java:1929)
net.sf.portecle.FPortecle.openKeyStoreFile(FPortecle.java:1834)
net.sf.portecle.FPortecle.access$4200(FPortecle.java:150)
net.sf.portecle.FPortecle$OpenKeyStoreFileAction.act(FPortecle.java:6180)
net.sf.portecle.FPortecle$AbstractAction.actionPerformed(FPortecle.java:6551)
javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
javax.swing.DefaultButtonModel.setPressed(Unknown Source)
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
java.awt.Component.processMouseEvent(Unknown Source)
javax.swing.JComponent.processMouseEvent(Unknown Source)
java.awt.Component.processEvent(Unknown Source)
java.awt.Container.processEvent(Unknown Source)
java.awt.Component.dispatchEventImpl(Unknown Source)
java.awt.Container.dispatchEventImpl(Unknown Source)
java.awt.Component.dispatchEvent(Unknown Source)
java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
java.awt.Container.dispatchEventImpl(Unknown Source)
java.awt.Window.dispatchEventImpl(Unknown Source)
java.awt.Component.dispatchEvent(Unknown Source)
java.awt.EventQueue.dispatchEventImpl(Unknown Source)
java.awt.EventQueue.access$000(Unknown Source)
java.awt.EventQueue$1.run(Unknown Source)
java.awt.EventQueue$1.run(Unknown Source)
java.security.AccessController.doPrivileged(Native Method)
java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
java.awt.EventQueue$2.run(Unknown Source)
java.awt.EventQueue$2.run(Unknown Source)
java.security.AccessController.doPrivileged(Native Method)
java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
java.awt.EventQueue.dispatchEvent(Unknown Source)
java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
java.awt.EventDispatchThread.pumpEvents(Unknown Source)
java.awt.EventDispatchThread.pumpEvents(Unknown Source)
java.awt.EventDispatchThread.run(Unknown Source)
Reported by: galletto
- status: open --> closed-duplicate
Original comment by: scop
Duplicate of #3284147
Original comment by: scop