ctt-gob-es / clienteafirma

Cliente @firma
http://administracionelectronica.gob.es/ctt/clienteafirma
247 stars 120 forks source link

Autofirma 1.8.2 no detecta certificados en el almacen al no poder conectarse a el en MacOS Ventura 13 #350

Open aalmenar opened 12 months ago

aalmenar commented 12 months ago

Para realizar la firma, la unica solucion es cuando aparezca el dialogo de "Seleccione un certificado" es tener un fichero .p12 con los certificados y funciona pero en Ventura no es capaz de detectar los certificados del almacen del sistema o "Keychain"

El error al intentar acceder es:

java.lang.NullPointerException: Cannot invoke "java.security.cert.X509Certificate.getSerialNumber()" because "<local7>" is null
      at es.gob.afirma.keystores.AppleKeyStoreManager.getAliasesWithoutDuplicates(AppleKeyStoreManager.java:143)
      at es.gob.afirma.keystores.AppleKeyStoreManager.init(AppleKeyStoreManager.java:50)
      at es.gob.afirma.keystores.AOKeyStoreManagerFactory.getMacOSXKeyStoreManager(AOKeyStoreManagerFactory.java:577)
      at es.gob.afirma.keystores.AOKeyStoreManagerFactory.getAOKeyStoreManager(AOKeyStoreManagerFactory.java:144)
      at es.gob.afirma.keystores.AOKeyStoreDialog.openSystemKeyStore(AOKeyStoreDialog.java:383)
      at es.gob.afirma.keystores.AOKeyStoreDialog.changeKeyStoreManager(AOKeyStoreDialog.java:178)
      at es.gob.afirma.ui.core.jse.certificateselection.CertificateSelectionDialog.changeKeyStore(CertificateSelectionDialog.java:243)
      at es.gob.afirma.ui.core.jse.certificateselection.UtilActions.doChangeKeyStore(UtilActions.java:92)
      at es.gob.afirma.ui.core.jse.certificateselection.CertificateSelectionPanel$ChangeKeyStoreActionListener.actionPerformed(CertificateSelectionPanel.java:873)
      at java.desktop/javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
      at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
      at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
      at java.desktop/javax.swing.DefaultButtonModel.setPressed(Unknown Source)
      at java.desktop/javax.swing.AbstractButton.doClick(Unknown Source)
      at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
      at java.desktop/com.apple.laf.AquaMenuItemUI.doClick(Unknown Source)
      at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
      at java.desktop/java.awt.Component.processMouseEvent(Unknown Source)
      at java.desktop/javax.swing.JComponent.processMouseEvent(Unknown Source)
      at java.desktop/java.awt.Component.processEvent(Unknown Source)
      at java.desktop/java.awt.Container.processEvent(Unknown Source)
      at java.desktop/java.awt.Component.dispatchEventImpl(Unknown Source)
      at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
      at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
      at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
      at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
      at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
      at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
      at java.desktop/java.awt.Window.dispatchEventImpl(Unknown Source)
      at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
      at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
      at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
      at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
      at java.base/java.security.AccessController.doPrivileged(Unknown Source)
      at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
      at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
      at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
      at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
      at java.base/java.security.AccessController.doPrivileged(Unknown Source)
      at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
      at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
      at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
      at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
      at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
      at java.desktop/java.awt.WaitDispatchSupport$2.run(Unknown Source)
      at java.desktop/java.awt.event.InvocationEvent.dispatch(Unknown Source)
      at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
      at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
      at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
      at java.base/java.security.AccessController.doPrivileged(Unknown Source)
      at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
      at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
      at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
      at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
      at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)
franzz2000 commented 3 months ago

Hola, tengo el mismo problema.