CertificateAuthority

CertificateAuthority

Very rudimentary Certificate Authority (CA). Warning: DO NOT use this on the Internet. It is only for testing purposes.

Constructor

new CertificateAuthority(optsopt)

Creates an instance of CertificateAuthority.
Source:
Parameters:
Name Type Attributes Default Description
opts CertOpts <optional>
{} CA cert options.

Classes

CertificateAuthority

Members

cert_pem :string

Source:
Type:
  • string

Methods

issue(optsopt) → {ServerProperties}

Creates and signs a server certificate.
Source:
Parameters:
Name Type Attributes Default Description
opts CertOpts <optional>
{} Server cert options.
Throws:
No subject or names.
Type
Error
Returns:
Type:
ServerProperties
Information about the created certificate.