mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 20:24:05 -08:00
600013a1ab
Co-authored-by: Giulio Andreini <g.andreini@gmail.com>
55 lines
1.1 KiB
TypeScript
55 lines
1.1 KiB
TypeScript
/* eslint-disable n8n-nodes-base/cred-class-name-unsuffixed */
|
|
/* eslint-disable n8n-nodes-base/cred-class-field-name-unsuffixed */
|
|
import type { ICredentialType, INodeProperties, Icon } from 'n8n-workflow';
|
|
|
|
export class HttpSslAuth implements ICredentialType {
|
|
name = 'httpSslAuth';
|
|
|
|
displayName = 'SSL Certificates';
|
|
|
|
documentationUrl = 'httpRequest';
|
|
|
|
icon: Icon = 'node:n8n-nodes-base.httpRequest';
|
|
|
|
properties: INodeProperties[] = [
|
|
{
|
|
displayName: 'CA',
|
|
name: 'ca',
|
|
type: 'string',
|
|
description: 'Certificate Authority certificate',
|
|
typeOptions: {
|
|
password: true,
|
|
},
|
|
default: '',
|
|
},
|
|
{
|
|
displayName: 'Certificate',
|
|
name: 'cert',
|
|
type: 'string',
|
|
typeOptions: {
|
|
password: true,
|
|
},
|
|
default: '',
|
|
},
|
|
{
|
|
displayName: 'Private Key',
|
|
name: 'key',
|
|
type: 'string',
|
|
typeOptions: {
|
|
password: true,
|
|
},
|
|
default: '',
|
|
},
|
|
{
|
|
displayName: 'Passphrase',
|
|
name: 'passphrase',
|
|
type: 'string',
|
|
description: 'Optional passphrase for the private key, if the private key is encrypted',
|
|
typeOptions: {
|
|
password: true,
|
|
},
|
|
default: '',
|
|
},
|
|
];
|
|
}
|