CryptoName Object

Overview

The CryptoName object provides a convenient way to access a certificate's Issuer and Subject information. which is a collection of tagged components. The most common tags are CN (common name), E (email), O (organization), OU (organizational unit), L (locale), S (state), and C (country).

Member List

Properties


Item(Optional Index = "") As String (Read-only)

If Index is omitted, returns the issuer or subject information in the form of a CR/LF-separated list of tagged components.

If Index is specified, looks for and returns the component (or list of components) which tag is specified by Index.

This is the default property, so its name can be omitted.

Usage:

Subject = Cert.Subject.Item (or simply Cert.Subject)

or

IssuerCommonName = Cert.Issuer("CN")

Related Task: 4.2 Working with Certificate Stores


Name As String (Read-only)

Looks for and returns the first non-empty name component in the subject or issuer in the following order: CN, OU, O, E. If all these components are empty, returns an empty string.

Related Task: 4.2 Working with Certificate Stores

Methods

This object has no methods.
CryptoStore CryptoBlob