PKCS #11 3.1/3.2 conformance tests and scripting with XML

Abierto
#879 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Tranquilo
Stack tecnológico
cpp, xml
Área
testing

Línea de trabajo

Start with the linked pkcs11-test CI workflow and its PKCS #11 3.1/3.2 XML test cases for SoftHSM. The issue proposes broader conformance and integration testing, but does not specify which tests to add or how SoftHSM should integrate them. Define the test scope and expected CI behavior before implementation.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

I have implemented a command-line tool for testing and XML scripting interactions with PKCS #11 providers (https://github.com/frankmorgner/pkcs11-test).

In my CI pipeline, I'm testing it by running the PKCS#11 3.1/3.2 conformance tests against SoftHSM:

- run: target/release/pkcs11-test --module ${{ matrix.softhsm }} src/test-cases/pkcs11-v3.1/softhsm-2.6.1/init.xml
- run: target/release/pkcs11-test --module ${{ matrix.softhsm }} src/test-cases/pkcs11-v3.1/softhsm-2.6.1/AUTH-M-1-31.xml src/test-cases/pkcs11-v3.1/softhsm-2.6.1/BL-M-1-31.xml src/test-cases/pkcs11-v3.1/softhsm-2.6.1/CERT-M-1-31.xml src/test-cases/pkcs11-v3.1/softhsm-2.6.1/EXT-M-1-31.xml
- run: cat src/test-cases/pkcs11-v3.2/softhsm-2.6.1/AUTH-M-1-32.xml src/test-cases/pkcs11-v3.2/softhsm-2.6.1/BL-M-1-32.xml src/test-cases/pkcs11-v3.2/softhsm-2.6.1/CERT-M-1-32.xml src/test-cases/pkcs11-v3.2/softhsm-2.6.1/EXT-M-1-32.xml | target/release/pkcs11-test --module ${{ matrix.softhsm }}

The tests currently are very limited and SoftHSM only differs in terms of the static identifiers that the official PKCS #11 profiles are requiring. That's why I'm currently running an adapted version of the tests with dynamic identifiers compatible with SoftHSM.

I think the tool makes running integration tests a little easier (including initialisation) since you don't need compiled code to access PKCS #11 anymore. And in particular, checking the official conformance tests in YOUR CI pipeline may also be interesting for SoftHSM.

Lenguaje dominante
C++
Estrellas
1.1k
Forks
434
Merge medio
12 d 14 h
PR fusionados (30 d)
2

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de softhsm/SoftHSMv2

Todos los issues de softhsm/SoftHSMv2

Issues similares

Más issues de C++

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.