# Errors with PKCS and SSH

**URL:** <https://community.zymbit.com/t/errors-with-pkcs-and-ssh/1413>\
**Category:** HSM6\
**Created:** [April 28, 2022, 8:56pm UTC](https://community.zymbit.com/t/errors-with-pkcs-and-ssh/1413 "2022-04-28T20:56:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![crdant](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.zymbit.com/crdant/32/1102_2.png) [@crdant](https://community.zymbit.com/u/crdant)\
**Post date:** [April 28, 2022, 8:56pm UTC](https://community.zymbit.com/t/errors-with-pkcs-and-ssh/1413/1 "2022-04-28T20:56:14Z")

</div>

I’ve been running through [this tutorial](https://techblog.dac.digital/zymkey-hsm-for-ssh-authentication-b28c7566b648) on using PKCS support to connect via SSH. I was able to get it working in a previous iteration of my Raspberry Pi install (I think it was with Rasperian Bullseye), but with my current Buster config I’m having issues.

When I get to the step

```auto
ssh-keygen -D /usr/lib/libzk_pkcs11.so

```

I end up in an infinite loop with `C_GetAttributeValue failed: 130` printing with each iteration.

Happy to see if there are any potential fixes out there.
