Skip to content

Error in pkcs11_init:1439: PKCS #11 error #205

@pavithran93

Description

@pavithran93

I followed the steps in
https://github.com/MicrochipTech/cryptoauthlib/wiki/PKCS11-Linux-Setup.

When I run p11tool --list-all I am receiving below response
Capture

When I run p11tool --list-all --provider /usr/lib/libcryptoauth.so I getting this response
Capture

What's the difference between these two commands. Why my outcome is different?

Next I am trying to initialize the chip using the command p11tool --initialize "pkcs11:serial=10A592C2E036" --label appzgate. I am getting the error
Error in pkcs11_init:1439: PKCS #11 error.
Capture

As per the tutorial I am following it supposed to initialize the chip. But I am getting the error.

My requirement is I have SD card having Raspberry Pi OS. I have encrypted the root patriation of my SD card using LUKS encryption, to decrypt back I have generated the key file on USB stick and added the key file to LUKS patriation, when the raspberry pi rebooted the system will read the key from associated USB stick using that key file the SD card will be unlocked and boot up. Due to the USB stick is not secure to store the key file, I trying to store the key file on ATECC608A and read the key file from ATECC608A on boot

Please assist me to resolve this to proceed further

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