C# RSA decrypt parameter is incorrect
问题 I am trying to decrypt communication from web sockets secured with SSL certificate. The certificate is installed on the machine and the private key is present. I have this decrypt function public static string DecryptTry(X509Certificate2 x509, string stringTodecrypt) { try { if (x509 == null || string.IsNullOrEmpty(stringTodecrypt)) throw new Exception("A x509 certificate and string for decryption must be provided"); if (!x509.HasPrivateKey) throw new Exception("x509 certificate does not