diff --git a/src/masoniteorm/connections/PostgresConnection.py b/src/masoniteorm/connections/PostgresConnection.py index 0bbfe172..2823c299 100644 --- a/src/masoniteorm/connections/PostgresConnection.py +++ b/src/masoniteorm/connections/PostgresConnection.py @@ -85,6 +85,10 @@ def create_connection(self): password=self.password, host=self.host, port=self.port, + sslmode=self.options.get("sslmode"), + sslcert=self.options.get("sslcert"), + sslkey=self.options.get("sslkey"), + sslrootcert=self.options.get("sslrootcert"), options=( f"-c search_path={self.schema or self.full_details.get('schema')}" if self.schema or self.full_details.get("schema") @@ -106,6 +110,10 @@ def create_connection(self): password=self.password, host=self.host, port=self.port, + sslmode=self.options.get("sslmode"), + sslcert=self.options.get("sslcert"), + sslkey=self.options.get("sslkey"), + sslrootcert=self.options.get("sslrootcert"), options=( f"-c search_path={self.schema or self.full_details.get('schema')}" if self.schema or self.full_details.get("schema")