Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SelfSignedCertificate

A self-signed certificate helper for testing and development purposes.

While it helps for testing and development, it should never ever be used in production settings.

Hierarchy

  • SelfSignedCertificate

Index

Methods

certificatePath

  • certificatePath(): string
  • Filesystem path to the X.509 certificate file in PEM format .

    Returns string

delete

  • delete(): void
  • Delete the private key and certificate files.

    Returns void

keyCertOptions

  • Provides the KeyCertOptions RSA private key file in PEM format corresponding to the {@link SelfSignedCertificate#privateKeyPath}

    Returns PemKeyCertOptions

privateKeyPath

  • privateKeyPath(): string
  • Filesystem path to the RSA private key file in PEM format

    Returns string

trustOptions

  • Provides the TrustOptions X.509 certificate file in PEM format corresponding to the {@link SelfSignedCertificate#certificatePath}

    Returns PemTrustOptions

Static create

  • Create a new SelfSignedCertificate instance.

    Returns SelfSignedCertificate

  • Create a new SelfSignedCertificate instance with a fully-qualified domain name,

    Parameters

    • fqdn: string

    Returns SelfSignedCertificate

Generated using TypeDoc