Pergunta

How to get private key from a x509 v.3 certificate and store it in a RSACryptoServiceProvider class?

Foi útil?

Solução

RSACryptoServiceProvider rsaCsp = (RSACryptoServiceProvider)x509certificateobject.PrivateKey;

Suppose if you use public key then just change the .PrivateKey to .PublicKey.

Outras dicas

RSACryptoServiceProvider rsaCsp = (RSACryptoServiceProvider)x509certificateobject.PrivateKey;
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top