Class CertificateStore
Represents a collection of X509 certificates.
Inheritance
CertificateStore
Namespace: Certes.Pkcs
Assembly: Certes.dll
Syntax
public class CertificateStore
Methods
| Edit this page View SourceAdd(byte[])
Adds issuer certificates.
Declaration
public void Add(byte[] certificates)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | certificates | The issuer certificates. |
GetIssuers(byte[])
Gets the issuers of given certificate.
Declaration
public IList<byte[]> GetIssuers(byte[] der)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | der | The certificate. |
Returns
| Type | Description |
|---|---|
| IList<byte[]> | The issuers of the certificate, ordered from the closest issuer upwards. Each issuer must have signed the certificate below it. The chain stops at the first self-signed certificate, or at the highest issuer available when no self-signed certificate is present: ACME servers are not expected to supply the self-signed root (RFC 8555, section 7.4.2), so a chain that ends at an intermediate is not an error. |
Exceptions
| Type | Condition |
|---|---|
| AcmeException | Issuers were supplied, but none of them signed the certificate. |