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

CertificateManager.ensureCertificate() method

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

Signature:

ensureCertificate(canGenerateNewCertificate: boolean, terminal: Terminal): ICertificate;

Parameters

Parameter Type Description
canGenerateNewCertificate boolean  
terminal Terminal  

Returns:

ICertificate