Rush StackShopBlogEvents
Skip to main content

Home > @rushstack/debug-certificate-manager > CertificateManager

CertificateManager class

A utility class to handle generating, trusting, and untrustring a debug certificate. Contains two public methods to ensureCertificate and untrustCertificate.

Signature:

export declare class CertificateManager 

Constructors

Constructor

Modifiers

Description

(constructor)(options)

Constructs a new instance of the CertificateManager class

Properties

Property

Modifiers

Type

Description

certificateStore

readonly

CertificateStore

Get the certificate store used by this manager.

Methods

Method

Modifiers

Description

ensureCertificateAsync(canGenerateNewCertificate, terminal, options)

Get a development certificate from the store, or optionally, generate a new one and trust it if one doesn't exist in the store.

untrustCertificateAsync(terminal)

Attempt to locate a previously generated debug certificate and untrust it.

validateCertificateAsync(terminal, options)

Validate existing certificates to check if they are usable.