diff --git a/src/masoniteorm/connections/PostgresConnection.py b/src/masoniteorm/connections/PostgresConnection.py index 19919d95..9d4c74ad 100644 --- a/src/masoniteorm/connections/PostgresConnection.py +++ b/src/masoniteorm/connections/PostgresConnection.py @@ -64,7 +64,11 @@ def make_connection(self): password=self.password, host=self.host, port=self.port, - options=f"-c search_path={schema}" if schema else "", + options=f"-c search_path={schema}" if schema else None, + sslmode=self.options.get("sslmode", "prefer"), + sslcert=self.options.get("sslcert"), + sslkey=self.options.get("sslkey"), + sslrootcert=self.options.get("sslrootcert"), ) self._connection.autocommit = True