Before you begin: You need to know how to use z/OS® UNIX shells.
Perform the following steps to run the pre-compiled version of testpkcs11.
Getting the PKCS11 function list...
Initializing the PKCS11 environment...
Creating the temporary token...
Opening a session...
Generating keys. This may take a while...
Enciphering data...
Deciphering data...
Destroying keys...
Closing the session...
Deleting the temporary token...
Test completed successfully!
If you see different messages, there is an error in either your PKCS
#11 set up or in the token label that you specified.Getting the PKCS11 function list...
Initializing the PKCS11 environment...
Creating the temporary token...
C_InitToken #1 returned 7 (0x07) CKR_ARGUMENTS_BAD
Make sure your the token name you specified meets ICSF rules:
Contains only alphanumeric characters, nationals (@#$), and periods.
The first character cannot be a numeric or a period.
If you see other error messages, there is probably an error in the setup for the PKCS #11 environment. Determine the error represented by the PKCS #11 error code returned. For information about error codes, see Function return codes.
cd /usr/lpp/pkcs11/bin
./testpkcs11 -h