Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PKCS11 Initialization Error #118

Closed
agilesai1294 opened this issue Nov 5, 2019 · 3 comments
Closed

PKCS11 Initialization Error #118

agilesai1294 opened this issue Nov 5, 2019 · 3 comments

Comments

@agilesai1294
Copy link

agilesai1294 commented Nov 5, 2019

Hi,

root@sama5d2-xplained-sd:~# i2cdetect -y 0
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: 50 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: 60 -- -- -- 64 -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

root@sama5d2-xplained-sd:~# cat /etc/cryptoauthlib/cryptoauthlib.conf
# Cryptoauthlib Configuration File

filestore = /var/lib/cryptoauthlib

root@sama5d2-xplained-sd:~# cat /var/lib/cryptoauthlib/0.conf
0.conf   0.conf~
root@sama5d2-xplained-sd:~# cat /var/lib/cryptoauthlib/0.conf
0.conf   0.conf~
root@sama5d2-xplained-sd:~# cat /var/lib/cryptoauthlib/0.conf
# Reserved Configuration for a device
# The objects in this file will be created and marked as undeletable
# These are processed in order. Configuration parameters must be comma
# delimited and may not contain spaces

interface = i2c,0xC0
freeslots = 1,2,3

# Slot 0 is the primary private key
object = private,device,0

# Slot 10 is the certificate data for the device's public key
#object = certificate,device,10

# Slot 12 is the intermedate/signer certificate data
#object = certificate,signer,12

# Slot 15 is a public key
object = public,root,15

root@sama5d2-xplained-sd:~# cat /etc/pkcs11/pkcs11.conf
# This setting controls whether to load user configuration from the
# ~/.config/pkcs11 directory. Possible values:
#    none: No user configuration
#    merge: Merge the user config over the system configuration (default)
#    only: Only user configuration, ignore system configuration
user-config: merge

root@sama5d2-xplained-sd:~# cat /usr/share/p11-kit/modules/cryptoauthlib.module
module: /usr/lib/libcryptoauth.so
critical: yes
trust-policy: yes
managed: yes
log-calls: no

root@sama5d2-xplained-sd:~# p11tool --list-all
pkcs11_init: PKCS #11 initialization error.
warning: no token URL was provided for this operation; the available tokens are:

I dont see anything on p11tool --list-all

@bryan-hunt
Copy link
Contributor

Do you have p11-kit set up?

@bryan-hunt
Copy link
Contributor

In your previous ticket #117 it was working. What did you change?

@agilesai1294
Copy link
Author

@bryan-hunt I changed the Yocto Version, but it still not working with Yocto 2.1. ticket #117 . I was able to get this working so i am closing this issue.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants