From ddff80416df87166627fdefc755e3f79102c5664 Mon Sep 17 00:00:00 2001 From: Ria Scholz <123465523+mariaremote@users.noreply.github.com> Date: Thu, 2 May 2024 11:08:36 +0200 Subject: [PATCH] feat(S3 Node): Add support for self signed SSL certificates (#9269) --- packages/nodes-base/credentials/S3.credentials.ts | 7 +++++++ packages/nodes-base/nodes/S3/GenericFunctions.ts | 1 + 2 files changed, 8 insertions(+) diff --git a/packages/nodes-base/credentials/S3.credentials.ts b/packages/nodes-base/credentials/S3.credentials.ts index 54050a0310..11e6ad157f 100644 --- a/packages/nodes-base/credentials/S3.credentials.ts +++ b/packages/nodes-base/credentials/S3.credentials.ts @@ -41,5 +41,12 @@ export class S3 implements ICredentialType { type: 'boolean', default: false, }, + { + displayName: 'Ignore SSL Issues', + name: 'ignoreSSLIssues', + type: 'boolean', + default: false, + description: 'Whether to connect even if SSL certificate validation is not possible', + }, ]; } diff --git a/packages/nodes-base/nodes/S3/GenericFunctions.ts b/packages/nodes-base/nodes/S3/GenericFunctions.ts index 8506edbe82..a31eb6ddd5 100644 --- a/packages/nodes-base/nodes/S3/GenericFunctions.ts +++ b/packages/nodes-base/nodes/S3/GenericFunctions.ts @@ -83,6 +83,7 @@ export async function s3ApiRequest( qs: query, uri: endpoint.toString(), body: signOpts.body, + rejectUnauthorized: !credentials.ignoreSSLIssues as boolean, }; if (Object.keys(option).length !== 0) {