There's a wrapper of gnutls [here](https://github.com/FedericoCeratto/nim-gnutls) that provides pkcs11 functions, maybe that could help.
- pkcs11 implementation viralpoetry
- pkcs11 implementation shirleyquirk
There's a wrapper of gnutls [here](https://github.com/FedericoCeratto/nim-gnutls) that provides pkcs11 functions, maybe that could help.