简体   繁体   English

如何测试RSA私钥

[英]How to test RSA private key

I m on a widows machine and need to test easily if my private key is ok. 我在寡妇的机器上,如果我的私钥没问题,则需要轻松进行测试。 I need to test it becouse im wrapping it in HSM to export it and then unwrapping it in my test application in C#. 我需要对其进行测试,因为我将其包装在HSM中以导出它,然后在C#的测试应用程序中将其展开。 Now i just want to make sure the key was wrapped correctly and usable. 现在,我只想确保密钥正确包装并可用。 Allso i dont have certification for it so the testing has to be without using cert. 如此我没有认证,所以测试必须不使用证书。 Allso need to mention that the key is in DER ANS.1 format. 所有需要提及的是,密钥为DER ANS.1格式。 maybe there is sa simple app where i can load the key in and then do a simple encryption decryption on a string or something like that? 也许有一个简单的应用程序,我可以在其中加载密钥,然后对字符串或类似内容进行简单的加密解密?

我只是编写了一个简单的应用程序,并使用我的密钥进行签名以查看它们是否正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM