Errors with PKCS and SSH

I’ve been running through this tutorial 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

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.