Merge pull request #4324 from Infisical/mssql-ssl-issue-fix

servername host for mssql
This commit is contained in:
x032205
2025-08-06 21:08:21 -04:00
committed by GitHub

View File

@@ -44,7 +44,8 @@ const getConnectionConfig = ({
? { ? {
trustServerCertificate: !sslRejectUnauthorized, trustServerCertificate: !sslRejectUnauthorized,
encrypt: true, encrypt: true,
cryptoCredentialsDetails: sslCertificate ? { ca: sslCertificate } : {} cryptoCredentialsDetails: sslCertificate ? { ca: sslCertificate } : {},
servername: host
} }
: { encrypt: false } : { encrypt: false }
}; };