First, you need to determine "How has your current PostgreSQL extension been compiled?" (Is compiled into the main PHP executable or Loadable).
Determining the compilation of the current PGSQL extension:
- View the contents of your php.ini file
- Find a line like "extension = php_pgsql.so (should be php_pgsql.dylib)
If you find a string like this, then your extension is a loadable module. If it has a semicolon in front, your extension is part of the main PHP executable.
If this is a downloadable extension, then you can search the Internet with the hope that someone previously compiled the PGSQL extension with SSL support for a particular OS. If your extension is part of the main PHP executable, then find the OS distribution that is enabled with SSL support.
If you still cannot solve your problem, you need to build / compile the PostgreSQL extension against the libpq version, which, in turn, was compiled with SSL support.
Hope this helps!
source share