-1

I have one X509Certificate2 certificate in which I have FriendlyName "test". enter image description here

When i am getting the RawData from that certifcate and trying to create a new one from that then i am getting FriendlyName as blank ("").

X509Certificate2 x509 = new X509Certificate2(cert.RawData); enter image description here

Please let me know how can i import certificate FriendlyName as well. All Certificate properties has imported using RawData except FriendlyName.

user2671229
  • 19
  • 1
  • 4
  • RawData is the certificate only and FriendlyName is not in the certificate, nor is PrivateKey if present, although both can be in the X509Certificate2 _object_ and the cert store. If your cert entry or object has an exportable privatekey, exporting as PFX/PKCS12 will include friendlyname. – dave_thompson_085 Aug 09 '23 at 06:54

0 Answers0