Repository navigation
chore(sede): la sede de pega encuentra la CA local de rFirma en Windows y macOS - #2054
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Qué cambia
En Windows y macOS,
just sedefallaba con «no se ha podido emitir el certificado con la CA local de …: arranca rFirma una vez» aunque rFirma ya hubiera creado su CA.serve.mjssolo buscaba la CA en la ruta XDG de Linux ($XDG_DATA_HOMEo~/.local/share).Ahora
dataDirectory()usa la misma carpeta de datos que resuelvedesktop/adapters/paths.rs:%APPDATA%\rfirma~/Library/Application Support/rfirma$XDG_DATA_HOME/rfirmao~/.local/share/rfirma, como antesPruebas
just sedeemite el certificado con la CA de%APPDATA%\rfirma, y la sede de pega manda a firmar a rFirma eligiendo el almacén «Todos».Fuera de esta PR
El almacén por defecto de la sede de pega, «SoftHSM (pruebas)», manda la ruta de Linux
PKCS11:/usr/lib/softhsm/libsofthsm2.so. En Windows, rFirma lo rechaza conSAF_08(ADR-0022), así que fuera de Linux hay que elegir «Todos».