X509Certificate - Keyset does not exist
问题 I have a WinForms application that consumes a WCF, and pass as a parameter to a function a certificate: mySvcClient.SendDocument(cert.Export(X509ContentType.SerializedCert, "password")); ... In WCF service , I recreated the certificate from the array of bytes: public void SendDocument (byte[] binaryCert) { X509Certificate2 cert = new X509Certificate2(binaryCert, "password"); ... But when using the certificate to sign a xml, I got the error "Keyset does not exist": if (cert.HasPrivateKey) //