PublisherIdentityPermissionAttribute.X509Certificate Property


Gets or sets an Authenticode X.509v3 certificate that identifies the publisher of the calling code.

Namespace:   System.Security.Permissions
Assembly:  mscorlib (in mscorlib.dll)

public string X509Certificate { get; set; }

Property Value

Type: System.String

A hexadecimal representation of the X.509 certificate.

If this property is set, CertFile and SignedFile are ignored.

You can obtain the hexadecimal representation by running the Strong Name tool (Sn.exe) with the token and public key options (Sn-tpkeyfile) against a file that has an Authenticode signature. For more information, see Sn.exe (Strong Name Tool).

.NET Framework
Available since 1.1
Return to top