[gnutls-devel] [PATCH 0/2] PKCS #11 tests for key import and generating

Jan Vcelak jan.vcelak at nic.cz
Fri Feb 26 16:17:46 CET 2016


Hello,

the following patches should cover the code from my recent submissions with
tests.

The first patch enables DSA key generating. It's basically the same as the
existing code for RSA and ECC.

The second patch adds RSA/ECC/DSA private key import into the tests. The keys
are generated with certtool first, and then imported into the token.

There is one unresolved issue with the second test. It seems that there is
a bug in the p11tool. The p11tool --write ignores the GNUTLS_PIN environment
variable. Therefore the tests will fail. I have used 'pin-value=' URI attribute
to workaround this problem when developing this test.

Again, tested with SoftHSM 2.0.

Best regards,

Jan

Jan Vcelak (2):
  pkcs11: tests for DSA key generating
  pkcs11: tests for RSA, ECC, DSA private key import

 tests/suite/testpkcs11.sh | 73 +++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 73 insertions(+)

-- 
2.5.0




More information about the Gnutls-devel mailing list