System.Security.Cryptography.CryptographicException: keyset does not exist

前端 未结 8 1470
时光取名叫无心
时光取名叫无心 2020-12-04 09:59

When I make x509 certificate to encypt and decypt message, I got some error information and could not fix this problem. Could someone ever happend to solve this bug? thanks.

8条回答
  •  隐瞒了意图╮
    2020-12-04 10:46

    I ran into this error when I wasn't loading in the PrivateKey from my certificate into my signedXmlElement's SigningKey when trying to sign a SAML response.

    signedElement.SigningKey = myCertificate.PrivateKey;
    

提交回复
热议问题