Skip to content

Test of PKCS # 11 yields CKR_USER_NOT_LOGGED_IN (0x101) #1531

@dpmcgonigle

Description

@dpmcgonigle

Problem Description

When testing PKCS #11 with your commands:
"""
You may test the PKCS#11 support of your card with

"C:\Program Files\OpenSC Project\OpenSC\tools\pkcs11-tool.exe" --login --test
"C:\Program Files (x86)\OpenSC Project\OpenSC\tools\pkcs11-tool.exe" --login --test
""",
I get the log errors reproduced below. (error: PKCS11 function C_SignFinal failed: rv = CKR_USER_NOT_LOGGED_IN (0x101))

I installed both the 32 and 64 bit msi files as directed on the install page. I am running windows 10 on an Acer Aspire7. For a card reader, I have IOGEAR GSR202.

Logs

C:\Users\Dan>"C:\Program Files (x86)\OpenSC Project\OpenSC\tools\pkcs11-tool.exe" --login --test
Using slot 0 with a present token (0x0)
Logging in to "MCGONIGLE.DANIEL.PATRICK.JR.1291".
Please enter User PIN: C_SeedRandom() and C_GenerateRandom():
seeding (C_SeedRandom) not supported
ERR: C_GenerateRandom failed: CKR_DATA_INVALID (0x20)
Digests:
all 4 digest functions seem to work
MD5: OK
SHA-1: OK
RIPEMD160: OK
Signatures (currently only for RSA)
testing key 0 (PIV AUTH key)
error: PKCS11 function C_SignFinal failed: rv = CKR_USER_NOT_LOGGED_IN (0x101)
Aborting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions