<div dir="ltr">Tatsuo,<div><br></div><div style>Thanks for your interest. Unfortunately I still get the same result. Relevant config files are:<br><br>pgpool.conf:<br><div>ssl = on</div><div>ssl_key = &#39;./server.key&#39;<br>
</div><div>ssl_cert = &#39;./server.crt&#39;<br></div><div><br></div><div style>key and cert made by running (as postgres user): <br><div>   openssl req -new -text -out server.req (filling out with simple passphrase, and local hostname as name)</div>
<div>   openssl rsa -in privkey.pem -out server.key</div><div>   rm privkey.pem </div><div>   openssl req -x509 -in server.req -text -key server.key -out server.crt</div><div>   chmod og-rwx server.key</div></div><div style>
<br></div>   server.req and server.crt copied to /etc/pgpool-II and chowned to postgres:postgres<br><br>pool_hba.conf:</div><div style><div>host    all         all         <a href="http://127.0.0.1/32">127.0.0.1/32</a>          md5</div>
<div>host    all         all         ::1/128               md5<br></div><div><br></div><div style>pool_passwd updated with postgres user and hash</div><div style><br></div><div style><br></div><div style>pg_hba.conf on server:<br>
hostssl all             all             <a href="http://192.168.10.0/24">192.168.10.0/24</a>         md5<br></div><div style><br></div><div style><br></div><div style>I start pgpool, and there are no warnings in log even with debug set to 4. When I try to connect from localhost (on pgpool machine) I get<br>
<div><br></div><div>  psql template1 -h localhost -p9999</div><div>  psql: could not connect to server: Connection refused</div><div>        Is the server running on host &quot;localhost&quot; (::1) and accepting</div><div>
        TCP/IP connections on port 9999?</div><div style>or</div><div style><br></div><div><div>  psql template1 -h 127.0.0.1 -p9999</div><div>  psql:</div></div><div style>(the console just echoes &#39;psql&#39; and returns)</div>
<div style><br></div><div style>pgpool.log shows</div><div style><div>2014-05-05 11:49:55 LOG:   pid 4474: connection received: host=pgpoolhost port=36970</div><div>2014-05-05 11:49:55 DEBUG: pid 4474: Protocol Major: 1234 Minor: 5679 database:  user: </div>
<div>2014-05-05 11:49:55 DEBUG: pid 4474: SSLRequest from client</div><div>2014-05-05 11:49:55 DEBUG: pid 4474: pool_ssl: SSL requested but SSL support is not available</div><div>2014-05-05 11:49:55 DEBUG: pid 4474: read_startup_packet: application_name: psql</div>
<div>2014-05-05 11:49:55 DEBUG: pid 4474: Protocol Major: 3 Minor: 0 database: template1 user: postgres</div><div>2014-05-05 11:49:55 DEBUG: pid 4474: new_connection: connecting 0 backend</div><div>2014-05-05 11:49:55 DEBUG: pid 4474: new_connection: connecting 1 backend</div>
<div>2014-05-05 11:49:55 DEBUG: pid 4474: new_connection: skipping slot 1 because backend_status = 1</div><div>2014-05-05 11:49:55 DEBUG: pid 4474: pool_ssl: SSL requested but SSL support is not available</div><div>2014-05-05 11:49:55 LOG:   pid 4474: pool_do_auth: maybe protocol version mismatch (current version 3)</div>
<div>2014-05-05 11:49:55 DEBUG: pid 4474: pool_read_string: read all from pending data. po:1 len:148</div><div><br></div></div><div><br></div></div><div style>Everything works fine when ssl is set to &quot;off&quot; and hostssl is changed to &#39;host&#39; in pg_hba.conf. <br>
</div><div style><br></div><div style>And SSL connections work fine with identical config files when I use locally-compiled pgpool with ./configure --prefix=/usr --with-openssl --with-pgsql=/usr/pgsql-9.3</div><div><br></div>
Is there anything else I can do to further debug this?<br><br>Thanks,</div><div style><br></div><div style>Rick Morris</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, May 4, 2014 at 7:11 AM, Tatsuo Ishii <span dir="ltr">&lt;<a href="mailto:ishii@postgresql.org" target="_blank">ishii@postgresql.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Rick,<br>
<div class=""><br>
&gt; On more inspection, it appears that even though the pgpool RPM was linked<br>
&gt; to the SSL library when compiled, the --with-openssl directive was not<br>
&gt; enabled. I compiled pgpool from source with the openssl directive, and now<br>
&gt; have no problem with SSL connections.<br>
&gt;<br>
&gt; In the future, I hope the PgPool team will consider releasing an<br>
&gt; SSL-enabled RPM for download, as it makes widespread deployment of PgPool<br>
&gt; much easier in an enterprise.<br>
<br>
</div>Sorry for the inconvenience. I have uploaded SSL-enabled RPM.<br>
<br>
<a href="http://www.pgpool.net/mediawiki/index.php/Downloads" target="_blank">http://www.pgpool.net/mediawiki/index.php/Downloads</a><br>
<br>
pgpool-II-pg93-3.3.3-2.pgdg.x86_64.rpm<br>
pgpool-II-pg93-devel-3.3.3-2.pgdg.x86_64.rpm<br>
pgpool-II-pg93-3.3.3-2.pgdg.src.rpm<br>
<br>
Please try.<br>
<br>
Best regards,<br>
--<br>
Tatsuo Ishii<br>
SRA OSS, Inc. Japan<br>
English: <a href="http://www.sraoss.co.jp/index_en.php" target="_blank">http://www.sraoss.co.jp/index_en.php</a><br>
Japanese: <a href="http://www.sraoss.co.jp" target="_blank">http://www.sraoss.co.jp</a><br>
<div><div class="h5"><br>
&gt; Best regards,<br>
&gt;<br>
&gt; Rick Morris<br>
&gt;<br>
&gt;<br>
&gt; On Thu, May 1, 2014 at 4:12 PM, Rick Morris &lt;<a href="mailto:rmorris@kss-inc.com">rmorris@kss-inc.com</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt; Hi All,<br>
&gt;&gt;<br>
&gt;&gt; I can&#39;t get PgPool to support SSL connections, even though I follow the<br>
&gt;&gt; documented steps perfectly.<br>
&gt;&gt;<br>
&gt;&gt; Scenario: 2 PostgreSQL servers with streaming replication (primary -&gt;<br>
&gt;&gt; standby), PgPool in load-balancing mode. Everything works fine with non-SSL<br>
&gt;&gt; connections.<br>
&gt;&gt;<br>
&gt;&gt; 1. In the case of requiring SSL connections from the Postgres servers,<br>
&gt;&gt; connection attempts just fail with &quot;pool_do_auth: maybe protocol version<br>
&gt;&gt; mismatch (current version 3)&quot; while on the server side I see<br>
&gt;&gt;<br>
&gt;&gt; &quot;FATAL:  no pg_hba.conf entry for host &quot;192.168.10.10&quot;, user &quot;postgres&quot;,<br>
&gt;&gt; database &quot;template1&quot;, SSL off&quot;<br>
&gt;&gt; (connection set to hostssl in pg_hba.conf).<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; 2. In the case of enabling local SSL connections to PgPool, I configure<br>
&gt;&gt; pgpool.conf with<br>
&gt;&gt;<br>
&gt;&gt; ssl = true<br>
&gt;&gt; ssl_key = &#39;/etc/pgpool-II/server.key&#39;<br>
&gt;&gt; ssl_cert = &#39;/etc/pgpool-II/server.crt&#39;<br>
&gt;&gt; (with self-signed cert, same as in the Postgres servers)<br>
&gt;&gt;<br>
&gt;&gt; And when I connect locally to PgPool, the log shows<br>
&gt;&gt;<br>
&gt;&gt; &quot;pool_ssl: SSL requested but SSL support is not available&quot;<br>
&gt;&gt;<br>
&gt;&gt; And when I turn on debugging (set to 1 or 2 in pgpool.conf) I do not see<br>
&gt;&gt; SSL mentioned in the reported config keys during startup.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; System: Centos 6.5,<br>
&gt;&gt;<br>
&gt;&gt; Installed binaries:<br>
&gt;&gt; pgpool-II-pg93-3.3.3-1.pgdg.x86_64<br>
&gt;&gt; postgresql93.x86_64   9.3.4-1PGDG.rhel6 @pgdg93<br>
&gt;&gt;<br>
&gt;&gt; postgresql93-contrib.x86_64<br>
&gt;&gt; postgresql93-libs.x86_64<br>
&gt;&gt;<br>
&gt;&gt; Library check:<br>
&gt;&gt; [root@server ~]# ldd /usr/bin/pgpool<br>
&gt;&gt; linux-vdso.so.1 =&gt;(0x00007fff32f1c000)<br>
&gt;&gt; libpq.so.5 =&gt; /usr/pgsql-9.3/lib/libpq.so.5 (0x00007f2e121f0000)<br>
&gt;&gt; libpcp.so.0 =&gt; /usr/lib64/libpcp.so.0 (0x0000003663c00000)<br>
&gt;&gt; libpthread.so.0 =&gt; /lib64/libpthread.so.0 (0x0000003662800000)<br>
&gt;&gt; libpam.so.0 =&gt; /lib64/libpam.so.0 (0x0000003667400000)<br>
&gt;&gt; libcrypt.so.1 =&gt; /lib64/libcrypt.so.1 (0x0000003664800000)<br>
&gt;&gt; libresolv.so.2 =&gt; /lib64/libresolv.so.2 (0x0000003664000000)<br>
&gt;&gt; libnsl.so.1 =&gt; /lib64/libnsl.so.1 (0x0000003665400000)<br>
&gt;&gt; libm.so.6 =&gt; /lib64/libm.so.6 (0x0000003663000000)<br>
&gt;&gt; libc.so.6 =&gt; /lib64/libc.so.6 (0x0000003662400000)<br>
&gt;&gt; libssl.so.10 =&gt; /usr/lib64/libssl.so.10 (0x0000003669400000)<br>
&gt;&gt; libcrypto.so.10 =&gt; /usr/lib64/libcrypto.so.10 (0x0000003668400000)<br>
&gt;&gt; libgssapi_krb5.so.2 =&gt; /lib64/libgssapi_krb5.so.2 (0x0000003668000000)<br>
&gt;&gt; libldap_r-2.4.so.2 =&gt; /lib64/libldap_r-2.4.so.2 (0x0000003665000000)<br>
&gt;&gt; /lib64/ld-linux-x86-64.so.2 (0x0000003661c00000)<br>
&gt;&gt; libaudit.so.1 =&gt; /lib64/libaudit.so.1 (0x0000003666400000)<br>
&gt;&gt; libdl.so.2 =&gt; /lib64/libdl.so.2 (0x0000003662000000)<br>
&gt;&gt; libfreebl3.so =&gt; /lib64/libfreebl3.so (0x0000003664c00000)<br>
&gt;&gt; libkrb5.so.3 =&gt; /lib64/libkrb5.so.3 (0x0000003668c00000)<br>
&gt;&gt; libcom_err.so.2 =&gt; /lib64/libcom_err.so.2 (0x0000003664400000)<br>
&gt;&gt; libk5crypto.so.3 =&gt; /lib64/libk5crypto.so.3 (0x0000003669000000)<br>
&gt;&gt; libz.so.1 =&gt; /lib64/libz.so.1 (0x0000003663400000)<br>
&gt;&gt; libkrb5support.so.0 =&gt; /lib64/libkrb5support.so.0 (0x0000003668800000)<br>
&gt;&gt; libkeyutils.so.1 =&gt; /lib64/libkeyutils.so.1 (0x0000003667c00000)<br>
&gt;&gt; liblber-2.4.so.2 =&gt; /lib64/liblber-2.4.so.2 (0x0000003669c00000)<br>
&gt;&gt; libssl3.so =&gt; /usr/lib64/libssl3.so (0x0000003667000000)<br>
&gt;&gt; libsmime3.so =&gt; /usr/lib64/libsmime3.so (0x0000003667800000)<br>
&gt;&gt; libnss3.so =&gt; /usr/lib64/libnss3.so (0x0000003665c00000)<br>
&gt;&gt; libnssutil3.so =&gt; /usr/lib64/libnssutil3.so (0x0000003665800000)<br>
&gt;&gt; libplds4.so =&gt; /lib64/libplds4.so (0x0000003666000000)<br>
&gt;&gt; libplc4.so =&gt; /lib64/libplc4.so (0x0000003666800000)<br>
&gt;&gt; libnspr4.so =&gt; /lib64/libnspr4.so (0x0000003666c00000)<br>
&gt;&gt; libsasl2.so.2 =&gt; /usr/lib64/libsasl2.so.2 (0x0000003669800000)<br>
&gt;&gt; libselinux.so.1 =&gt; /lib64/libselinux.so.1 (0x0000003663800000)<br>
&gt;&gt; librt.so.1 =&gt; /lib64/librt.so.1 (0x0000003662c00000)<br>
&gt;&gt;<br>
&gt;&gt; PgPool master process<br>
&gt;&gt; /usr/bin/pgpool -f /etc/pgpool-II/pgpool.conf -n<br>
&gt;&gt;<br>
&gt;&gt; I am at a loss. Is there anything else I can look for to figure out why<br>
&gt;&gt; SSL is not loading?<br>
&gt;&gt;<br>
&gt;&gt; Thanks<br>
&gt;&gt;<br>
&gt;&gt; Rick Morris<br>
&gt;&gt;<br>
&gt;<br>
</div></div>&gt; --<br>
<div class="HOEnZb"><div class="h5">&gt;<br>
&gt;<br>
&gt;<br>
&gt; Confidentiality Statement<br>
&gt; This email and any files transmitted with it are confidential and intended<br>
&gt; solely for the use of the individual or entity to whom they are addressed.<br>
&gt; If you have received this email in error please notify the system manager.<br>
&gt; This message contains confidential information and is intended only for the<br>
&gt; individual named. If you are not the named addressee you should not<br>
&gt; disseminate, distribute or copy this e-mail. Please notify the sender<br>
&gt; immediately by e-mail if you have received this e-mail by mistake and<br>
&gt; delete this e-mail from your system. If you are not the intended recipient<br>
&gt; you are notified that disclosing, copying, distributing or taking any<br>
&gt; action in reliance on the contents of this information is strictly<br>
&gt; prohibited.<br>
&gt; KnowledgeSource, 580 Harrison Ave, Boston MA 02118<br>
&gt;<br>
</div></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>