You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 20, 2023. It is now read-only.
I used the command-line OpenSSL program to generate the public and private keys and to sign a file but when I try to use RSA.VerifyData to verify the signature, it fails.
I was previously using the .NET Core version of the RSA class which has (slightly) better support for PEM and so didn't need to use PEM-utils and the VerifyData call succeeded.
I'm generating the keys like so:
> openssl version
OpenSSL 1.0.2u 20 Dec 2019
> openssl genpkey -out privkey.pem -algorithm rsa 4096
I used the command-line OpenSSL program to generate the public and private keys and to sign a file but when I try to use
RSA.VerifyData
to verify the signature, it fails.I was previously using the .NET Core version of the RSA class which has (slightly) better support for PEM and so didn't need to use PEM-utils and the
VerifyData
call succeeded.I'm generating the keys like so:
and the signature like so:
and the code for verifying the signature looks like this:
The text was updated successfully, but these errors were encountered: