# 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:
  - vertx-js/self_signed_certificate.js, line 33

### Methods

#### certificatePath() → {string}

Filesystem path to the X.509 certificate file in PEM format .

Source:
  - vertx-js/self_signed_certificate.js, line 87

##### Returns:

the absolute path to the certificate.

Type
  string

#### delete()

Delete the private key and certificate files.

Source:
  - vertx-js/self_signed_certificate.js, line 100

#### keyCertOptions() → {Object}

Provides the KeyCertOptions RSA private key file in PEM format corresponding to the SelfSignedCertificate#privateKeyPath

Source:
  - vertx-js/self_signed_certificate.js, line 45

##### Returns:

a PemKeyCertOptions based on the generated certificate.

Type
  Object

#### privateKeyPath() → {string}

Filesystem path to the RSA private key file in PEM format

Source:
  - vertx-js/self_signed_certificate.js, line 73

##### 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:
  - vertx-js/self_signed_certificate.js, line 59

##### Returns:

a PemTrustOptions based on the generated certificate.

Type
  Object