Postgresql install adding openssl I install postgresql in my ubuntu Server 18.04 LTS, and I want it support OpenSSL.


I do the lengthy way with PostgreSQL source code installation, where I can select the openssl feature: 


 ./configure –with-openssl
  make
  make install
  ldconfigure



Upon installing the Ubuntu server I can select with the help of tasksel PostgreSQL to be installed, or using the apt-get postgresql-10  postgresql-contrib


Does the 2nd way configure PostgreSQL to add the feature of openssl (be SSL ready)?
You can try pg_config with --configure flag.


  --configure
  
  Print the options that were given to the configure script
  when PostgreSQL was configured for building. This can be used to
  reproduce the identical configuration, or to find out with what
  options a binary package was built. (Note however that binary packages
  often contain vendor-specific custom patches.)


And confirm whether the installed version has SSL enabled or not!