Class: SelfSignedCertificate

vertx-js/self_signed_certificate~ SelfSignedCertificate

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

Source:

Methods

certificatePath() → {string}

Filesystem path to the X.509 certificate file in PEM format .
Source:
Returns:
the absolute path to the certificate.
Type
string

delete()

Delete the private key and certificate files.
Source:

keyCertOptions() → {Object}

Provides the KeyCertOptions RSA private key file in PEM format corresponding to the SelfSignedCertificate#privateKeyPath
Source:
Returns:
a PemKeyCertOptions based on the generated certificate.
Type
Object

privateKeyPath() → {string}

Filesystem path to the RSA private key file in PEM format
Source:
Returns:
the absolute path to the private key.
Type
string

trustOptions() → {Object}

Provides the TrustOptions X.509 certificate file in PEM format corresponding to the SelfSignedCertificate#certificatePath
Source:
Returns:
a PemTrustOptions based on the generated certificate.
Type
Object