Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/image-processing/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用.NET和powershell验证RSA签名_.net_Powershell_Rsa_Digital Signature - Fatal编程技术网

使用.NET和powershell验证RSA签名

使用.NET和powershell验证RSA签名,.net,powershell,rsa,digital-signature,.net,Powershell,Rsa,Digital Signature,对于一个项目,我需要实现一个解决方案,以向许多Windows机器证明文件已通过Debian服务器。为此,我必须使用数字签名来确保文件已通过服务器 我无法在windows下安装软件(再见GPG或PGP),因此我必须使用powershell中的.NET System.Security.Cryptography加密库 在Debian上,我使用以下命令对文件进行签名: openssl rsautl -sha256 -sign -in myfile -inkey priv.pem -out myfile.

对于一个项目,我需要实现一个解决方案,以向许多Windows机器证明文件已通过Debian服务器。为此,我必须使用数字签名来确保文件已通过服务器

我无法在windows下安装软件(再见GPG或PGP),因此我必须使用powershell中的.NET System.Security.Cryptography加密库

在Debian上,我使用以下命令对文件进行签名:

openssl rsautl -sha256 -sign -in myfile -inkey priv.pem -out myfile.sig
我不知道如何使用powershell验证我的RSA签名。您是否有在powershell中使用.Net进行RSA签名验证的示例?.NET加密库似乎不支持直接加载PEM文件,因此有必要将PEM文件转换为RSA类想要的格式,尤其是字节数组。

这很容易找到。这很容易找到。