Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TLS server config seems to be ignored #7

Open
jalberto opened this issue Jul 19, 2017 · 5 comments
Open

TLS server config seems to be ignored #7

jalberto opened this issue Jul 19, 2017 · 5 comments

Comments

@jalberto
Copy link

jalberto commented Jul 19, 2017

Using:

SERVER_TLS_SSLMODE=require

I can see in the logs the generated ini file:

[databases]
* = host=host port=5432 user=user password=pw

[pgbouncer]
# Generic settings
listen_addr = 0.0.0.0
auth_type = any
ignore_startup_parameters = extra_float_digits

# Log settings
admin_users = postgres

# Connection sanity checks, timeouts

# TLS settings
server_tls_sslmode = prefer

# Dangerous timeouts
################## end file ##################

But when trying to connect:

login attempt: db=db user=uder tls=no
new connection to server (from 172.17.0.3:45586)
WARNING TLS handshake error: handshake failed: error:27069065:OCSP routines:OCSP_basic_verify:certificate verify error
closing because: server conn crashed? (age=0)

Notice: tls=no

Is it possible the image is missing some ssl lib?

@brainsam
Copy link
Owner

Hi, Jose!
First of all, it looks like you typed SERVER_TLS_SSLMODE=prefer to get that pgbouncer.ini
Did you read this issue #105?

@brainsam
Copy link
Owner

to tell the truth, I haven't tested tls settings before, will try to reproduce and fix this near days

@jalberto
Copy link
Author

Hi @brainsam

Yes you are right, I mean prefer, but I tried with require too.

That issue you mention seems to be related to client SSL not server SSL, also they are talking about connection using certificates (verify mode) with require/prefer/allow the cert is not checked against a local cert, just use a SSL connection.

Thank for your help!

@edevil
Copy link

edevil commented Mar 5, 2018

I have the same problem. Has a solution been found?

@arsa666
Copy link

arsa666 commented Jul 16, 2019

has this issue been solved? I have same problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants