Documentation
    Preparing search index...
    • Validates a set of SSL/TLS credentials before they are used to establish a database connection.

      Checks performed:

      1. The client certificate PEM is a valid X.509 certificate.
      2. The private key PEM is a valid private key.
      3. The private key matches the public key embedded in the certificate.
      4. The certificate is signed by at least one CA in the CA bundle.

      Parameters

      • key: Buffer

        PEM-encoded private key buffer.

      • cert: Buffer

        PEM-encoded client certificate buffer.

      • ca: Buffer

        PEM-encoded CA bundle buffer (may contain multiple certificates).

      Returns void

      SslValidationError When any validation step fails.