Home > @rushstack/debug-certificate-manager > CertificateManager > ensureCertificateAsync
CertificateManager.ensureCertificateAsync() method
Get a development certificate from the store, or optionally, generate a new one and trust it if one doesn't exist in the store.
Signature:
ensureCertificateAsync(canGenerateNewCertificate: boolean, terminal: ITerminal, generationOptions?: ICertificateGenerationOptions): Promise<ICertificate>;
Parameters
Parameter | Type | Description |
---|---|---|
canGenerateNewCertificate | boolean | |
terminal | ITerminal | |
generationOptions | ICertificateGenerationOptions | (Optional) |
Returns:
Promise<ICertificate>