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

can we enforce sslmode=require #49

Open
johnbritto1 opened this issue Jun 6, 2018 · 2 comments
Open

can we enforce sslmode=require #49

johnbritto1 opened this issue Jun 6, 2018 · 2 comments
Labels

Comments

@johnbritto1
Copy link

Hello,

How can we enforce sslmode=require in pgsql drivers in this.
Please assist.

Will a server configured as

'Test abc' => array(
'host' => '1.1.1.1:5400;sslmode=require',
'driver' => 'pgsql'
)

would work ?

@Samnan
Copy link
Owner

Samnan commented Jun 6, 2018 via email

@johnbritto1
Copy link
Author

johnbritto1 commented Jun 13, 2018

Hi Samnan,

I think the SSL feature needs to be implemented in client side for auth security.
Because even we enforce hostssl on the pg_hba.conf in server side, pgpsql will first try connection via HTTP. Once the connection terminates, then it try again with HTTPS.

@Samnan Samnan added the feature label Oct 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants