Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

servername host for mssql

x032205e105a5f7dad6
diff --git a/backend/src/services/app-connection/shared/sql/sql-connection-fns.ts b/backend/src/services/app-connection/shared/sql/sql-connection-fns.ts
index 4c671986f2..b9425d7be5 100644
--- a/backend/src/services/app-connection/shared/sql/sql-connection-fns.ts
+++ b/backend/src/services/app-connection/shared/sql/sql-connection-fns.ts
@@ -44,7 +44,8 @@ const getConnectionConfig = ({
? {
trustServerCertificate: !sslRejectUnauthorized,
encrypt: true,
- cryptoCredentialsDetails: sslCertificate ? { ca: sslCertificate } : {}
+ cryptoCredentialsDetails: sslCertificate ? { ca: sslCertificate } : {},
+ servername: host
}
: { encrypt: false }
};