Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
972a0ad4
Commit
972a0ad4
authored
Oct 19, 2015
by
Peter Mitchell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add sslrootcert connection option to pdo_pgsql driver
parent
2c789aa8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
configuration.rst
docs/en/reference/configuration.rst
+5
-0
Driver.php
lib/Doctrine/DBAL/Driver/PDOPgSql/Driver.php
+4
-0
No files found.
docs/en/reference/configuration.rst
View file @
972a0ad4
...
@@ -254,6 +254,11 @@ pdo\_pgsql
...
@@ -254,6 +254,11 @@ pdo\_pgsql
a SSL TCP/IP connection will be negotiated with the server.
a SSL TCP/IP connection will be negotiated with the server.
See the list of available modes:
See the list of available modes:
`http://www.postgresql.org/docs/9.1/static/libpq-connect.html#LIBPQ-CONNECT-SSLMODE`
`http://www.postgresql.org/docs/9.1/static/libpq-connect.html#LIBPQ-CONNECT-SSLMODE`
- ``sslrootcert`` (string): specifies the name of a file containing
SSL certificate authority (CA) certificate(s). If the file exists,
the server's certificate will be verified to be signed by one of these
authorities.
See http://www.postgresql.org/docs/9.0/static/libpq-connect.html#LIBPQ-CONNECT-SSLROOTCERT
PostgreSQL behaves differently with regard to booleans when you use
PostgreSQL behaves differently with regard to booleans when you use
``PDO::ATTR_EMULATE_PREPARES`` or not. To switch from using ``'true'``
``PDO::ATTR_EMULATE_PREPARES`` or not. To switch from using ``'true'``
...
...
lib/Doctrine/DBAL/Driver/PDOPgSql/Driver.php
View file @
972a0ad4
...
@@ -99,6 +99,10 @@ class Driver extends AbstractPostgreSQLDriver
...
@@ -99,6 +99,10 @@ class Driver extends AbstractPostgreSQLDriver
$dsn
.=
'sslmode='
.
$params
[
'sslmode'
]
.
' '
;
$dsn
.=
'sslmode='
.
$params
[
'sslmode'
]
.
' '
;
}
}
if
(
isset
(
$params
[
'sslrootcert'
]))
{
$dsn
.=
'sslrootcert='
.
$params
[
'sslrootcert'
]
.
' '
;
}
return
$dsn
;
return
$dsn
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment