@adobe/ccweb-add-on-devcert
Version:
Generate trusted local SSL/TLS certificates for local SSL development
14 lines (13 loc) • 655 B
TypeScript
/**
* Generate a domain certificate signed by the devcert root CA. Domain
* certificates are cached in their own directories under
* CONFIG_ROOT/domains/<domain>, and reused on subsequent requests. Because the
* individual domain certificates are signed by the devcert root CA (which was
* added to the OS/browser trust stores), they are trusted.
*/
export declare function generateDomainCertificate(domains: string[]): Promise<void>;
/**
* Revoke a domain certificate signed by the devcert root CA.
*/
export declare function revokeDomainCertificate(domains: string[]): Promise<void>;
export declare function generateKey(filename: string): void;