@types/mkcert
TypeScript icon, indicating that this package has built-in type declarations

1.2.2 • Public • Published

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

// 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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/mkcert

Weekly Downloads

1,954

Version

1.2.2

License

MIT

Unpacked Size

4.07 kB

Total Files

5

Last publish

Collaborators

  • types