X509Certificate2.FriendlyName Property


Gets or sets the associated alias for a certificate.

Namespace:   System.Security.Cryptography.X509Certificates
Assembly:  System (in System.dll)

member FriendlyName : string with get, set

Property Value

Type: System.String

The certificate's friendly name.

Exception Condition

The certificate is unreadable.

Friendly names are properties in the X.509 certificate store that can be set. They are used to enable a user to associate aliases with certificates so they can be easily identified.

If no friendly name exists for the certificate, an empty string ("") is returned.

The following code example creates a command-line executable that takes a certificate file as an argument and prints various certificate properties to the console.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top