Skip to main content

How to Provision a PostgreSQL VDB with SSL Enabled (KBA8907)




KBA# 8907

Applicable Delphix Versions

Click here to view the versions of the Delphix engine to which this article applies
Major Release All Sub Releases

How to Task

This article describes how to provision a PostgreSQL VDB with SSL enabled.


Follow the instructions in this article to create a private key and a signed server certificate (Section 17.9.3. Creating Certificates ). By default these should be placed in the PostgreSQL server's "data" directory and are typically named server.crt and server.key. You may place them in other directories and use the PostgreSQL configuration parameters ssl_cert_file and ssl_key_file to specify their name and location.

To Provision the VDB with SSL Enabled

Complete the following procedure to provision the PostgreSQL VDB with SSL enabled.

  1. After completing the prerequisite steps and copying the private key and server certificate to their desired locations, click on the timeline of your dSource and start provisioning a VDB from one of the snapshots.
  2. On the "Target Configuration" section of the VDB provisioning wizard, add the following three "Custom Database-Level config settings":

    ssl - The primary SSL configuration property should be "on" or "off".
    ssl_cert_file - The name and location of the SSL server certificate.
    ssl_key_file - The name and location of the SSL private key.

  3. After successfully provisioning the VDB, try connecting to it with the "psql" utility. A successful connection will echo "SSL connection" details to the terminal.
    $ psql -p 5477 -U delphix  -h postgres
    psql (11.2)
    SSL connection (protocol: TLSv1.2, cipher: ECDHE-RSA-AES256-GCM-SHA384, bits: 256, compression: off)
    Type "help" for help.
    postgres=# show ssl;

You can also run the "show ssl" command to confirm what the property is set to as illustrated above.

Related Articles

The following articles may provide more information or related information to this article: