pkcs11_add_provider: PKCS #11 error.

cancel
Showing results for 
Search instead for 
Did you mean: 

pkcs11_add_provider: PKCS #11 error.

91 Views
pawar_123_y
Contributor II

Hello,

I am getting "pkcs11_add_provider: PKCS #11 error." while using p11tool --provider=/usr/lib/softhsm/libsofthsm2.so --list-tokens command

Thanks

 

0 Kudos
2 Replies

81 Views
Yuri
NXP TechSupport
NXP TechSupport

@pawar_123_y 
Hello,

   please let me know in  more details how to reproduce the issue.

Regards,
Yuri.

0 Kudos

68 Views
pawar_123_y
Contributor II

Thanks Yuri for replay. i solved that problem with sudo access.

I am trying to "Push certificate & key to HSM" using "p11tool --provider /usr/lib/softhsm/libsofthsm2.so --login --write " pkcs11:model=SoftHSM%20v2;manufacturer=SoftHSM%20project;serial=1e28cce1f77ad0c7;token=CST-HSM-1234" --load-privkey keys/CSF1_1_sha256_2048_65537_v3_usr_key.pem --label CSF1_1_sha256_2048_65537_v3_usr --id 1000 "  this command.

it ask for PIN : accepted pin which i have set.

it ask for Password : I have not set any password here,so i was not getting which password it need.i tried with my system password but it didn't work.

Log is as follows:

Token '' with URL 'key:' requires user PIN
Enter PIN:
Enter password:
importing --load-privkey: keys/CSF1_1_sha256_2048_65537_v3_usr_key.pem: Decryption has failed.

can you please help me with this.

For pushing certificate it didn't ask for password. it needed PIN only.