使用.NET和powershell验证RSA签名
对于一个项目,我需要实现一个解决方案,以向许多Windows机器证明文件已通过Debian服务器。为此,我必须使用数字签名来确保文件已通过服务器 我无法在windows下安装软件(再见GPG或PGP),因此我必须使用powershell中的.NET System.Security.Cryptography加密库 在Debian上,我使用以下命令对文件进行签名:使用.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.
openssl rsautl -sha256 -sign -in myfile -inkey priv.pem -out myfile.sig
我不知道如何使用powershell验证我的RSA签名。您是否有在powershell中使用.Net进行RSA签名验证的示例?.NET加密库似乎不支持直接加载PEM文件,因此有必要将PEM文件转换为RSA类想要的格式,尤其是字节数组。这很容易找到。这很容易找到。