mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -08:00
feat(Microsoft SQL Node): Add support for self signed certificates (#5160)
This commit is contained in:
parent
5b9c521d04
commit
971d5ae8f5
|
@ -53,6 +53,13 @@ export class MicrosoftSql implements ICredentialType {
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
default: true,
|
default: true,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Ignore SSL Issues',
|
||||||
|
name: 'allowUnauthorizedCerts',
|
||||||
|
type: 'boolean',
|
||||||
|
default: false,
|
||||||
|
description: 'Whether to connect even if SSL certificate validation is not possible',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Connect Timeout',
|
displayName: 'Connect Timeout',
|
||||||
name: 'connectTimeout',
|
name: 'connectTimeout',
|
||||||
|
|
|
@ -235,6 +235,8 @@ export class MicrosoftSql implements INodeType {
|
||||||
options: {
|
options: {
|
||||||
encrypt: credentials.tls as boolean,
|
encrypt: credentials.tls as boolean,
|
||||||
enableArithAbort: false,
|
enableArithAbort: false,
|
||||||
|
tdsVersion: credentials.tdsVersion as string,
|
||||||
|
trustServerCertificate: credentials.allowUnauthorizedCerts as boolean,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
const pool = new mssql.ConnectionPool(config);
|
const pool = new mssql.ConnectionPool(config);
|
||||||
|
@ -269,6 +271,7 @@ export class MicrosoftSql implements INodeType {
|
||||||
encrypt: credentials.tls as boolean,
|
encrypt: credentials.tls as boolean,
|
||||||
enableArithAbort: false,
|
enableArithAbort: false,
|
||||||
tdsVersion: credentials.tdsVersion as string,
|
tdsVersion: credentials.tdsVersion as string,
|
||||||
|
trustServerCertificate: credentials.allowUnauthorizedCerts as boolean,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue