CiGetCertPublisherName - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ntfill.h

// rev
typedef // routine: CiGetCertPublisherName
_Function_class_(CI_GET_CERT_PUBLISHER_NAME)
NTSTATUS
NTAPI
CI_GET_CERT_PUBLISHER_NAME(
    _In_ PCRYPT_DER_BLOB Certificate, // MINCRYPT_POLICY_INFO.ChainInfo.ChainElements.Certificate
    _In_ PCI_ALLOCATE_ROUTINE AllocateRoutine,
    _Out_ PUNICODE_STRING PublisherName
    );

View code on GitHub

NtDoc

Parses a DER-encoded certificate and returns the publisher name as a UNICODE_STRING. Typically used after a successful signature verification to obtain a human-readable signer name from the certificate chain returned in a MINCRYPT_POLICY_INFO structure.

Parameters

Remarks

This function is exported from ci.dll.

The exact portion of the certificate that is returned (for example, the subject common name versus the full subject) is not covered by any public documentation known to us.

A minimal working usage example, including a matching AllocateRoutine implementation that allocates from NonPagedPoolNx, is available in the CiGetCertPublisherName project by kkent030315.

See also