Postgresql install adding openssl
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!