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

オープン
#879 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
cpp, xml
領域
testing

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
C++
スター
1.1k
フォーク
434
平均マージ
12日 14時間
マージ済み PR(30日)
2

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

softhsm/SoftHSMv2 のほかの issue

softhsm/SoftHSMv2 の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。