Unable to set the private key in .net core

  • Thread starter Thread starter Code Geek
  • Start date Start date
C

Code Geek

Guest
Hi

We have stored our Digi certificates having private key in Hashicorp vault. it contains thee things.Certificate, name and private key.

I am trying to read the data and return new x509 certiiate using a .net standard project

var crypto = new RSACryptoServiceProvider(parms);
crypto.FromXmlString(Encoding.UTF8.GetString(Convert.FromBase64String(certificationvalue.Data.PrivateKey)));
_
x509.PrivateKey = crypto; // getting error that operation is not allowed on this platform.

How can i fix this

Continue reading...
 
Back
Top