@types/mkcert
Version:
TypeScript definitions for mkcert
48 lines (38 loc) • 1.36 kB
Markdown
# Installation
> `npm install --save @types/mkcert`
# Summary
This package contains type definitions for mkcert (https://github.com/Subash/mkcert/).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mkcert.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mkcert/index.d.ts)
````ts
// Type which represent's generated certificate
export interface Certificate {
cert: string;
key: string;
}
// Type which represent's CA certificate generation input parameters
export interface CACertificateInfo {
organization: string;
countryCode: string;
state: string;
locality: string;
validityDays: number;
}
// Type which represent's certificate generation input parameters
export interface CertificateInfo {
domains: string[];
validityDays: number;
caKey: string;
caCert: string;
}
// Api to create a Certificate Authority
export function createCA(caCerticateInfo: CACertificateInfo): Promise<Certificate>;
// Api to create a Certificate
export function createCert(certicateInfo: CertificateInfo): Promise<Certificate>;
````
### Additional Details
* Last updated: Tue, 07 Nov 2023 09:09:39 GMT
* Dependencies: none
# Credits
These definitions were written by [Sachin Arunkumar](https://github.com/asachin96).