问题标签 [pkcs11interop]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
pkcs#11 - PKCS#11Interop.X509Store 找不到私钥
Pkcs11X509Certificate 无法在某些令牌中找到私钥。
Pkcs11X509Certificate.GetRSAPrivateKey() 产生空值。然后,当我运行 SignedXml.ComputeSignature() 时,我收到以下错误:
System.Security.Cryptography.CryptographicException:“未加载签名密钥。”
c# - 使用 HSM 在 Pkcs11Interop 中进行 Aes cmac 计算
我正在尝试基于 HSM 上存储的密钥生成 Aes Cmac,并支持 Pkcs11Interop,这是我的逻辑
但我总是得到异常: Net.Pkcs11Interop.Common.Pkcs11Exception Method C_SignInit returned CKR_MECHANISM_PARAM_INVALID
关于如何生成 CMAC 的任何想法或示例
c# - 如何将更多签名属性添加到 iText 签名 (PDF/CMS)
问题:我想用 iText 和 PKCS11 提供程序签署 PDF 文档(在 C# 中,Java 也可以)。这可行,但签名的 PDF 缺少几个signed attributes
:
- 发行人
- 序列号
- 签约时间
因此,在@mkl 发表评论后,我实现了一个自定义IExternalSignatureContainer
,但签名看起来无效我当前的代码:
c# - 我如何使用 PKCS11 Interop LowLevele API 从令牌中提取证书和私钥
我有一个签署 PDF 文件的应用程序,我需要从令牌证书和私钥中提取来执行此操作。
我需要一个带有Pkcs11Interop
LowLevel API 的 C# 代码。我试过这段代码: