@cto.af/ca - v2.4.0
    Preparing search index...

    Class CertificateAuthority

    Certificate Authority that does local storage, intended for testing on the local machine.

    WARNING: Not intended for scale or actual security. DO NOT deploy on the Internet in the current form.

    Index

    Constructors

    Methods

    • Create a child logger for the CA's use.

      Parameters

      • OptionallogOpts: LogOptions

        Options for logging.

      Returns Logger

      Child logger.

    • Delete the CA certificate and key.

      Returns Promise<void>

    • Delete the given certificate and key.

      Parameters

      Returns Promise<void>

    • Delete the certificate pointed to by the options dir and host.

      Parameters

      Returns Promise<void>

    • Mostly-internal, for initialization. Must be called before any substantive work is done.

      Returns Promise<KeyCert>

      CA KeyCert.

    • Issue a certificate for use in an HTTPS server. May read from existing on-disk cert and in-keychain key. Will generate a new cert if the old one is no longer valid.

      Parameters

      Returns Promise<KeyCert>

      Initialized KeyCert.