Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting Certificate Friendly Name

Im trying to set the certificate friendly name during the certificate request/acceptance process. I understand that this a property of the microsoft store rather than the certificate and an wondering what .net/c# technique might be used to set it.

like image 874
J Hunt Avatar asked Nov 25 '25 02:11

J Hunt


1 Answers

Use X509Certificate2.FriendlyName. However, you must export the certificate as PFX/PKCS#12:

X509Certificate2 certificate = new X509Certificate2(...);
certificate.FriendlyName = "MyName";
File.WriteAllBytes(path, certificate.Export(X509ContentType.Pkcs12));
like image 180
Steven Avatar answered Nov 27 '25 16:11

Steven



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!