Windows TPM 虚拟智能卡 RSA 密钥存储
Windows TPM Virtual Smart Card RSA Key Storage
1( 嗨,我想知道是否可以使用虚拟智能卡来存储我正在设计的应用程序的 RSA 密钥对。到目前为止,我只能找到登录方面的文档,但没有标准智能卡加密存储的文档。我尝试将旧的CSPParameter用于智能卡,但无济于事。下面的代码将执行,但操作系统将声明虚拟智能卡对此操作无效。
SecureString pwd;
char[] scPwd = { '1', '2', '3', '4', '5','6','7','8' };
fixed(char* pChars = scPwd)
{
pwd = new SecureString(pChars, scPwd.Length);
}
CspParameters csp =
new CspParameters(1,
"Microsoft Base Smart Card Crypto Provider",
"Codeproject_1",
new System.Security.AccessControl.CryptoKeySecurity(),
pwd);
RSACryptoServiceProvider rsaCsp = (new RSACryptoServiceProvider(4096,csp( { PersistKeyInCsp = true });
测试卡的命令行测试:
tpmvscmgr.exe create /name test /pin default /adminkey random /generate
2( 如果可以,是否可以公开用户 PIN 码,并且不可导出的密钥仍然不可导出?
在执行创建虚拟智能卡的命令之前,您是否尝试以管理员身份打开终端?
相关文章:
- SSH通过/sbin/SSH无法读取RSA密钥文件(从控制台运行)
- 允许从 std::map 的密钥窃取资源?
- TMap::Emplace() 在应用现有密钥时会覆盖吗?
- 在没有密钥的情况下读取密文的剩余噪声预算
- 如何修复无效的API密钥,IP或操作权限错误?
- 所有可能的链接生成器与64位密钥
- 如何在unordered_map中更改密钥?
- std::unordered_map如何存储和比较其密钥,以实现无需订购即可快速访问元素?
- Windows TPM 虚拟智能卡 RSA 密钥存储
- 将密钥哈希存储在类中以提高效率
- 将公共密钥存储在数据库(C )中
- 使用CNG存储功能导入Windows密钥存储中的持久键
- 在用户计算机上存储密钥的推荐方法
- OpenSSL:我使用存储外部文件的RSA密钥加密和解密文件,但有时我的程序会崩溃
- 使用基元函数和存储在 KSP Microsoft中的密钥
- 避免重复存储映射密钥
- CNG Microsoft智能卡密钥存储提供商AcquireContext
- 是否可以将 QColor 作为密钥存储在 QMap 中
- KSP(密钥存储提供程序)未通过凭据提供程序在登录时加载
- 生成和存储所有DES密钥