我想使用SoftHSMv2和pkcs11工具对一些数据进行签名(或加密)。
到目前为止,我使用以下命令生成了RSA密钥对:
pkcs11-tool --module=/usr/local/lib/softhsm/libsofthsm2.so -l --pin mypin -k --key-type rsa:1024 --id 01 --label mykey但当我想签点什么的时候:
echo "some text" > input.txt
pkcs11-tool --module=/usr/local/lib/softhsm/libsofthsm2.so -l --pin mypin -s -i input.txt我得到以下错误消息:
Using slot 0 with a present token (0x0)
error: Sign mechanism not supported
Aborting.根据我对文档的理解,我应该能够使用SoftHSM签名,但也许我错了?
有没有在编译期间添加的选项,或者解决我的问题的其他方法?如果没有,市场上是否还有其他SSM产品?
发布于 2017-07-21 12:04:21
您似乎忘记了-m (--mechanism)选项。阅读更多here。
https://stackoverflow.com/questions/36626859
复制相似问题