X509Certificate.GetIssuerName Method ()
Returns the name of the certification authority that issued the X.509v3 certificate.
Assembly: mscorlib (in mscorlib.dll)
<ObsoleteAttribute("This method has been deprecated. Please use the Issuer property instead. http://go.microsoft.com/fwlink/?linkid=14202")> Public Overridable Function GetIssuerName As String
Return ValueType: System.String
The name of the certification authority that issued the X.509 certificate.
An error with the certificate occurs. For example:
The following example uses themethod to return the certificate issuer's name and displays it to the console.
Imports System Imports System.Security.Cryptography.X509Certificates Public Class X509 Public Shared Sub Main() ' The path to the certificate. Dim Certificate As String = "Certificate.cer" ' Load the certificate into an X509Certificate object. Dim cert As X509Certificate = X509Certificate.CreateFromCertFile(Certificate) ' Get the value. Dim results As String = cert.GetIssuerName() ' Display the value to the console. Console.WriteLine(results) End Sub End Class
Available since 1.1