<div dir="ltr">On more inspection, it appears that even though the pgpool RPM was linked to the SSL library when compiled, the --with-openssl directive was not enabled. I compiled pgpool from source with the openssl directive, and now have no problem with SSL connections. <div>
<br></div><div>In the future, I hope the PgPool team will consider releasing an SSL-enabled RPM for download, as it makes widespread deployment of PgPool much easier in an enterprise.</div><div><br></div><div>Best regards,</div>
<div><br></div><div>Rick Morris</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, May 1, 2014 at 4:12 PM, Rick Morris <span dir="ltr">&lt;<a href="mailto:rmorris@kss-inc.com" target="_blank">rmorris@kss-inc.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi All,<br><br>I can&#39;t get PgPool to support SSL connections, even though I follow the documented steps perfectly.</div>
<div><br></div><div>Scenario: 2 PostgreSQL servers with streaming replication (primary -&gt; standby), PgPool in load-balancing mode. Everything works fine with non-SSL connections.</div>
<div><br></div><div>1. In the case of requiring SSL connections from the Postgres servers, connection attempts just fail with &quot;pool_do_auth: maybe protocol version mismatch (current version 3)&quot; while on the server side I see </div>

<div><br></div><div>&quot;FATAL:  no pg_hba.conf entry for host &quot;192.168.10.10&quot;, user &quot;postgres&quot;, database &quot;template1&quot;, SSL off&quot;</div><div>(connection set to hostssl in pg_hba.conf).</div>

<div><br></div><div><br></div><div>2. In the case of enabling local SSL connections to PgPool, I configure pgpool.conf with<br><br><div>ssl = true</div><div>ssl_key = &#39;/etc/pgpool-II/server.key&#39;<br></div><div>ssl_cert = &#39;/etc/pgpool-II/server.crt&#39;</div>

</div><div>(with self-signed cert, same as in the Postgres servers)</div><div><br></div><div>And when I connect locally to PgPool, the log shows<br><br>&quot;pool_ssl: SSL requested but SSL support is not available&quot;<br>

</div><div><br></div><div>And when I turn on debugging (set to 1 or 2 in pgpool.conf) I do not see SSL mentioned in the reported config keys during startup. <br><br><br>System: Centos 6.5, </div><div><br></div><div>Installed binaries:</div>

<div>pgpool-II-pg93-3.3.3-1.pgdg.x86_64</div><div><div>postgresql93.x86_64   9.3.4-1PGDG.rhel6 @pgdg93                                 </div><div>postgresql93-contrib.x86_64</div><div>postgresql93-libs.x86_64</div></div>
<div>
<br></div><div>Library check: </div><div>[root@server ~]# ldd /usr/bin/pgpool <div>linux-vdso.so.1 =&gt;(0x00007fff32f1c000)</div><div>libpq.so.5 =&gt; /usr/pgsql-9.3/lib/libpq.so.5 (0x00007f2e121f0000)</div><div>libpcp.so.0 =&gt; /usr/lib64/libpcp.so.0 (0x0000003663c00000) </div>

<div>libpthread.so.0 =&gt; /lib64/libpthread.so.0 (0x0000003662800000) </div><div>libpam.so.0 =&gt; /lib64/libpam.so.0 (0x0000003667400000) </div><div>libcrypt.so.1 =&gt; /lib64/libcrypt.so.1 (0x0000003664800000) </div><div>

libresolv.so.2 =&gt; /lib64/libresolv.so.2 (0x0000003664000000) </div><div>libnsl.so.1 =&gt; /lib64/libnsl.so.1 (0x0000003665400000) </div><div>libm.so.6 =&gt; /lib64/libm.so.6 (0x0000003663000000) </div><div>libc.so.6 =&gt; /lib64/libc.so.6 (0x0000003662400000) </div>

<div>libssl.so.10 =&gt; /usr/lib64/libssl.so.10 (0x0000003669400000) </div><div>libcrypto.so.10 =&gt; /usr/lib64/libcrypto.so.10 (0x0000003668400000) </div><div>libgssapi_krb5.so.2 =&gt; /lib64/libgssapi_krb5.so.2 (0x0000003668000000) </div>

<div>libldap_r-2.4.so.2 =&gt; /lib64/libldap_r-2.4.so.2 (0x0000003665000000) </div><div>/lib64/ld-linux-x86-64.so.2 (0x0000003661c00000) </div><div>libaudit.so.1 =&gt; /lib64/libaudit.so.1 (0x0000003666400000) </div><div>

libdl.so.2 =&gt; /lib64/libdl.so.2 (0x0000003662000000)</div><div>libfreebl3.so =&gt; /lib64/libfreebl3.so (0x0000003664c00000)</div><div>libkrb5.so.3 =&gt; /lib64/libkrb5.so.3 (0x0000003668c00000)</div><div>libcom_err.so.2 =&gt; /lib64/libcom_err.so.2 (0x0000003664400000)</div>

<div>libk5crypto.so.3 =&gt; /lib64/libk5crypto.so.3 (0x0000003669000000)</div><div>libz.so.1 =&gt; /lib64/libz.so.1 (0x0000003663400000)</div><div>libkrb5support.so.0 =&gt; /lib64/libkrb5support.so.0 (0x0000003668800000)</div>

<div>libkeyutils.so.1 =&gt; /lib64/libkeyutils.so.1 (0x0000003667c00000)</div><div>liblber-2.4.so.2 =&gt; /lib64/liblber-2.4.so.2 (0x0000003669c00000)</div><div>libssl3.so =&gt; /usr/lib64/libssl3.so (0x0000003667000000)</div>

<div>libsmime3.so =&gt; /usr/lib64/libsmime3.so (0x0000003667800000)</div><div>libnss3.so =&gt; /usr/lib64/libnss3.so (0x0000003665c00000)</div><div>libnssutil3.so =&gt; /usr/lib64/libnssutil3.so (0x0000003665800000)</div>

<div>libplds4.so =&gt; /lib64/libplds4.so (0x0000003666000000)</div><div>libplc4.so =&gt; /lib64/libplc4.so (0x0000003666800000)</div><div>libnspr4.so =&gt; /lib64/libnspr4.so (0x0000003666c00000)</div><div>libsasl2.so.2 =&gt; /usr/lib64/libsasl2.so.2 (0x0000003669800000)</div>

<div>libselinux.so.1 =&gt; /lib64/libselinux.so.1 (0x0000003663800000)</div><div>librt.so.1 =&gt; /lib64/librt.so.1 (0x0000003662c00000)</div></div><div><br></div><div>PgPool master process </div><div>/usr/bin/pgpool -f /etc/pgpool-II/pgpool.conf -n</div>

<div><br></div><div>I am at a loss. Is there anything else I can look for to figure out why SSL is not loading?</div><div><br></div><div>Thanks</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Rick Morris</div>
</font></span></div>
</blockquote></div><br></div>

<br>
<div align="center"><font face="Verdana" size="2"><br><br><br><font color="gray">Confidentiality Statement<br>This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.<br></font></font></div><font color="gray" size="2"><font color="black">KnowledgeSource, 580 Harrison Ave, Boston MA 02118</font><br></font><br>