IPWorks S/MIME 2020 .NET Edition

Questions / Feedback?

CertList Event

Lists the certificates in a store (see the ListStoreCertificates method).


public event OnCertListHandler OnCertList;

public delegate void OnCertListHandler(object sender, CertmgrCertListEventArgs e);

public class CertmgrCertListEventArgs : EventArgs {
  public string CertEncoded { get; }
public byte[] CertEncodedB { get; } public string CertSubject { get; } public string CertIssuer { get; } public string CertSerialNumber { get; } public bool HasPrivateKey { get; } }
Public Event OnCertList As OnCertListHandler

Public Delegate Sub OnCertListHandler(sender As Object, e As CertmgrCertListEventArgs)

Public Class CertmgrCertListEventArgs Inherits EventArgs
  Public ReadOnly Property CertEncoded As String
Public ReadOnly Property CertEncodedB As Byte() Public ReadOnly Property CertSubject As String Public ReadOnly Property CertIssuer As String Public ReadOnly Property CertSerialNumber As String Public ReadOnly Property HasPrivateKey As Boolean End Class


The CertSubject and CertIssuer parameters contain distinguished names of the certificate owner and issuer respectively. The HasPrivateKey flag shows whether the private key for the certificate is available in the system.

The StoreList event and the ListCertificateStores and ListMachineStores methods are used to list the certificate stores in the system.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks S/MIME 2020 .NET Edition - Version 20.0 [Build 8154]