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.
Methods
certificatePath() → {string}
Filesystem path to the X.509 certificate file in PEM format .
Returns:
the absolute path to the certificate.
- Type
- string
delete()
Delete the private key and certificate files.
keyCertOptions() → {Object}
Provides the KeyCertOptions RSA private key file in PEM format corresponding to the SelfSignedCertificate#privateKeyPath
Returns:
a PemKeyCertOptions based on the generated certificate.
- Type
- Object
privateKeyPath() → {string}
Filesystem path to the RSA private key file in PEM format
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
Returns:
a PemTrustOptions based on the generated certificate.
- Type
- Object