scop/portecle

Cannot save pkcs12 keystore when launched from Webstart

scop opened this issue · 2 comments

scop commented

System Windows 7. Launch Portecle via Webstart. Then create new PKCS#12 keystore, generate keypair and save. Exception is thrown:

net.sf.portecle.crypto.CryptoException: Could not save keystore.
net.sf.portecle.crypto.KeyStoreUtil.saveKeyStore(KeyStoreUtil.java:397)
net.sf.portecle.FPortecle.saveKeyStoreAs(FPortecle.java:2203)
net.sf.portecle.FPortecle.saveKeyStore(FPortecle.java:2082)
net.sf.portecle.FPortecle$SaveKeyStoreAction.act(FPortecle.java:6148)
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.AbstractButton.doClick(Unknown Source)
javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
javax.swing.plaf.basic.BasicMenuItemUI$Handler.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.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)

java.io.IOException: exception encrypting data - java.lang.SecurityException: JCE cannot authenticate the provider BC
org.bouncycastle.jce.provider.JDKPKCS12KeyStore.wrapKey(Unknown Source)
org.bouncycastle.jce.provider.JDKPKCS12KeyStore.engineStore(Unknown Source)
java.security.KeyStore.store(Unknown Source)
net.sf.portecle.crypto.KeyStoreUtil.saveKeyStore(KeyStoreUtil.java:393)
net.sf.portecle.FPortecle.saveKeyStoreAs(FPortecle.java:2203)
net.sf.portecle.FPortecle.saveKeyStore(FPortecle.java:2082)
net.sf.portecle.FPortecle$SaveKeyStoreAction.act(FPortecle.java:6148)
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.AbstractButton.doClick(Unknown Source)
javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
javax.swing.plaf.basic.BasicMenuItemUI$Handler.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.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: *anonymous

scop commented
  • status: open --> closed-works-for-me

Original comment by: scop

scop commented

Works just fine for me on Linux using Oracle's JRE 1.6.0 update 26 as well as the web start that comes with Fedora's OpenJDK (I believe it's netx 0.5).

Original comment by: scop