Repository navigation
fix(dev): los certificados de pruebas se instalan en macOS, en el SoftHSM de Homebrew y en un llavero aparte - #2056
Merged
Merged
Conversation
…ftHSM de Homebrew en macOS
… un llavero aparte de macOS
sgomez
commented
Oct 20, 2026
sgomez
left a comment
Owner
Author
There was a problem hiding this comment.
CLEAN
Alcance: completo (primera revisión), contra origin/main. Sin spec de origen: la PR no cierra ningún issue (solo remite a #2055), así que no hay comprobación de fidelidad a la spec.
Checks: aún en marcha en 8d718066: Plataformas / macOS, Plataformas / Windows, Cadena Rust, Cadena Java, Cadena TypeScript, Imagen nativa y los Analyze de CodeQL. Los resuelve la puerta de merge.
Sin [blocking] ni [fix].
[note]
testdata/keychain/certs.sh: si algo falla después decreate-keychain(p. ej. unopensslsin-legacy, como el LibreSSL de/usr/binsi el de Homebrew no va antes en elPATH), el llavero queda a medio llenar y en la lista de búsqueda, y el siguienteinstallse niega con «ya existe». El mensaje ya dice cómo salir (uninstall + install); comprobaropensslantes de crear el llavero, o borrarlo en untrapde error, evitaría el estado intermedio.tests/support/softhsm.rs: dos pares de#[cfg(target_os)](la función y la constanteINSTALL); un único par que devuelva ruta y orden juntas dejaría un solo sitio de cfg en el fichero recién autorizado ensingle_cfg_os_site.rs.tests/command_line/support.rs:the_card_moduleahora respetaRFIRMA_PKCS11_MODULE, que antes ignoraba. Es coherente con el resto y con quecommand_line.rsle pase esa misma variable al binario; lo apunto solo porque cambia el comportamiento.
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
testdata/softhsm/platform.shelige la ruta del módulo y la orden de instalación según el sistema. Lo cargancerts.sh,provision-token.shyscripts/isolated-store.sh. Las pruebas en Rust leen el módulo desdetests/support/softhsm.rs, en vez de repetir la ruta de Linux en cada fichero.just keychain-certs install|uninstall(solo macOS). Importa los.p12detestdata/fnmt/en un llavero aparte,rfirma-test.keychain-db, que se añade a la lista de búsqueda del usuario.uninstallborra ese llavero y no toca el de inicio de sesión.Las mejoras que quedan en los scripts de certificados, en #2055.