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

[5.3] Add SSL options for Postgres DSN #15371

Merged
merged 2 commits into from
Sep 9, 2016
Merged

Conversation

Belphemur
Copy link
Contributor

There is already the SSLMODE option available, but if you set it to verify-full, you would need to also set the sslrootcert with the full path of the server certificate. This way, the client will be able to check the certificate of the server and be sure it's connecting to the right one.

This patch is only adding the different SSL option available for a postgres connection has stated here: https://www.postgresql.org/docs/9.5/static/libpq-connect.html

There is already the SSLMODE option available, but if you set it to verify-full, you would need to also set the sslrootcert with the full path of the server certificate. This way, the client will be able to check the certificate of the server and be sure it's connecting to the right one.

This patch is only adding the different SSL option available for a postgres connection has stated here: https://www.postgresql.org/docs/9.5/static/libpq-connect.html
@Belphemur Belphemur changed the title Add SSL options for Postgres DSN [5.3] Add SSL options for Postgres DSN Sep 9, 2016
@Belphemur Belphemur changed the title [5.3] Add SSL options for Postgres DSN Add SSL options for Postgres DSN Sep 9, 2016
@taylorotwell taylorotwell merged commit 3130be9 into laravel:5.3 Sep 9, 2016
@GrahamCampbell GrahamCampbell changed the title Add SSL options for Postgres DSN [5.3] Add SSL options for Postgres DSN Sep 9, 2016
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

Successfully merging this pull request may close these issues.

None yet

2 participants