System::Security::Cryptography::X509Certificates::X509Certificate2::GetNameInfo method

X509Certificate2::GetNameInfo method

Gets subject or issuer name from certificate.

String System::Security::Cryptography::X509Certificates::X509Certificate2::GetNameInfo(X509NameType name_type, bool for_issuer) const
ParameterTypeDescription
name_typeX509NameTypeName formatting options.
for_issuerboolIf true, returns issuer name, else returns subject name.

ReturnValue

Formatted issuer or subject name.

See Also