2024-04-24 07:28:02 -07:00
|
|
|
/* eslint-disable n8n-nodes-base/cred-class-name-unsuffixed */
|
|
|
|
/* eslint-disable n8n-nodes-base/cred-class-field-name-unsuffixed */
|
2024-06-06 04:34:30 -07:00
|
|
|
import type { ICredentialType, INodeProperties, Icon } from 'n8n-workflow';
|
2024-04-24 07:28:02 -07:00
|
|
|
|
|
|
|
export class HttpSslAuth implements ICredentialType {
|
|
|
|
name = 'httpSslAuth';
|
|
|
|
|
|
|
|
displayName = 'SSL Certificates';
|
|
|
|
|
|
|
|
documentationUrl = 'httpRequest';
|
|
|
|
|
2024-06-06 04:34:30 -07:00
|
|
|
icon: Icon = 'node:n8n-nodes-base.httpRequest';
|
2024-04-24 07:28:02 -07:00
|
|
|
|
|
|
|
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: '',
|
|
|
|
},
|
|
|
|
];
|
|
|
|
}
|