Writing multiple json items to files

Hello i try to write json items to separate files pairs. I generate json items and files names and want to write the to files. I suceeded writing only one file pair. How can write more than one pair of files. I would be pleased help how can achive write multiple file pairs to disk.

May work flow below to describe what i want to achieve

{
  "nodes": [
    {
      "parameters": {},
      "name": "Start",
      "type": "n8n-nodes-base.start",
      "typeVersion": 1,
      "position": [
        250,
        300
      ]
    },
    {
      "parameters": {
        "mode": "jsonToBinary",
        "convertAllData": false,
        "options": {
          "useRawData": "=true"
        }
      },
      "name": "Move Binary Data",
      "type": "n8n-nodes-base.moveBinaryData",
      "typeVersion": 1,
      "position": [
        1210,
        480
      ]
    },
    {
      "parameters": {
        "functionCode": "var myStr = 'this:is:a:test';\nvar newStr = myStr.replace(/:/g, '-');\nconst selfsigned = require('selfsigned');\nvar pems = selfsigned.generate(null, { keySize: 2048, days: 3000, lientCertificateCN: 'ee-dev_90013035_ester', clientCertificate: true });\nitems[0].json = pems;\nitems[0].json.filename = newStr;\nreturn items;\n"
      },
      "name": "Mock Data",
      "type": "n8n-nodes-base.function",
      "typeVersion": 1,
      "position": [
        800,
        470
      ],
      "notesInFlow": true,
      "notes": "Generating data"
    },
    {
      "parameters": {
        "functionCode": "const fileData = items.map(item => item.json.clientcert);\nreturn [\n  {\n    json: {\n      data: fileData.join(\"\\n\")\n    }\n  }\n ]"
      },
      "name": "Convert Data",
      "type": "n8n-nodes-base.function",
      "typeVersion": 1,
      "position": [
        1030,
        460
      ]
    },
    {
      "parameters": {
        "fileName": "=/tmp/{{$node[\"Mock Data\"].json[\"filename\"]}}.crt"
      },
      "name": "Write Binary File1",
      "type": "n8n-nodes-base.writeBinaryFile",
      "typeVersion": 1,
      "position": [
        1390,
        480
      ]
    },
    {
      "parameters": {
        "functionCode": "const fileData = items.map(item => item.json.clientprivate);\n\nreturn [\n  {\n    json: {\n      data: fileData.join(\"\\n\")\n    }\n  }\n]"
      },
      "name": "Convert Data1",
      "type": "n8n-nodes-base.function",
      "typeVersion": 1,
      "position": [
        1010,
        640
      ]
    },
    {
      "parameters": {
        "mode": "jsonToBinary",
        "convertAllData": false,
        "options": {
          "useRawData": true
        }
      },
      "name": "Move Binary Data1",
      "type": "n8n-nodes-base.moveBinaryData",
      "typeVersion": 1,
      "position": [
        1180,
        640
      ]
    },
    {
      "parameters": {
        "fileName": "=/tmp/{{$node[\"Mock Data\"].json[\"filename\"]}}.key"
      },
      "name": "Write Binary File2",
      "type": "n8n-nodes-base.writeBinaryFile",
      "typeVersion": 1,
      "position": [
        1380,
        640
      ],
      "alwaysOutputData": true
    },
    {
      "parameters": {
        "functionCode": "items[0].json = [\n{\n\"issuer_distinguished_name\": \"CN=proxy, O=MISP2, C=EE\",\n\"issuer_common_name\": \"proxy\",\n\"subject_distinguished_name\": \"CN=proxy, O=MISP2, C=EE\",\n\"subject_common_name\": \"proxy\",\n\"not_before\": \"2015-02-19T15:34:21Z\",\n\"not_after\": \"2023-05-08T15:34:21Z\",\n\"serial\": \"15002966229041785427\",\n\"version\": 1,\n\"signature_algorithm\": \"SHA1withRSA\",\n\"signature\": \"ca22b8dc5dac98e6f8425d49020fbc0f50022a622d347f381b1ca9adbda977db2c438b558b8bdca5f53f66fa2516d46344d60e99d987171b25772b3447975e2af4ced1d3e66aedb75b92ffebc755709139bc30218a579b7187c490dcb7c8db7ff571a6d\",\n\"public_key_algorithm\": \"RSA\",\n\"rsa_public_key_modulus\": \"cdaf83a4cde4b2500a3db4627cb95dbe32730d74ef10b852fae72f0c85a80e3bf254be68b7849207d42248001fbbd7955f53908ed790e0e96ffdf7b0cf19221e53b822439edcf6e3583cbd1edcc0f91f75ef7d664ec55f85e840decaebfe8095f04f0c42ca38b4bbc05\",\n\"rsa_public_key_exponent\": 65537,\n\"hash\": \"C122A11AAA9\",\n\"key_usages\": [\n],\n\"differnece\": 21,\n\"key\": 40,\n\"id\": \"ee-dev:COM:10137025:10137025-tieto\",\n\"instance_id\": \"ee-dev\",\n\"member_name\": \"Tieto Estonia Aktsiaselts\",\n\"member_class\": \"COM\",\n\"member_code\": \"10137025\",\n\"subsystem_code\": \"10137025-tieto\",\n\"owner\": false,\n\"has_valid_local_sign_cert\": true,\n\"connection_type\": \"HTTPS\",\n\"status\": \"REGISTERED\"\n},\n{\n\"issuer_distinguished_name\": \"CN=10264823-ANDMEVARA, OU=ee-dev:COM:10264823, O=Andmevara, C=EE\",\n\"issuer_common_name\": \"10264823-ANDMEVARA\",\n\"subject_distinguished_name\": \"CN=10264823-ANDMEVARA, OU=ee-dev:COM:10264823, O=Andmevara, C=EE\",\n\"subject_common_name\": \"10264823-ANDMEVARA\",\n\"not_before\": \"2016-12-15T14:14:11Z\",\n\"not_after\": \"2025-03-03T14:14:11Z\",\n\"serial\": \"13596881388653279962\",\n\"version\": 3,\n\"signature_algorithm\": \"SHA256withRSA\",\n\"signature\": \"d893fa5846917d1d0e986174dc1de4df622bd68d53d6b69944131781063db68ae564c50a12f1aa869148a3bd0d0346a68321096a7a7b25d5756a61c9bd76cefc3525aad6acc49b883533ead0b0a15dce10c543c5e06cb1f1b1429999d85236c023217b6e4403089886924a5557dcb1067eca537591a53dc5557657a8898f0ec2986aa879147583e33a1de734c7fdb88cb10b9e067b4385fbcf121755a6b71aba4d1ee52a00a96dc7636b087f94263f23f918a55bd93e228d49d0f5bcbed6c60c9d16fbcb091a62726ffb5b6430077884bec031b40e2f0cb\",\n\"public_key_algorithm\": \"RSA\",\n\"rsa_public_key_modulus\": \"aca4343042fce72f25f2b353d425b5872cc9277ed23a43a3131c2c1a5337c3dab5c19338fbd54614c245940c5321e02e70bb29fb11a2b52b9d552d25c4a3b52bd60767ccbbbb1d8e3a2334d8f9d32cc686cb3a1329f310590bd34cdcfc7356478807f030bac174d5234b635c499a8192eac9ec2921d08db0cca9386d8a419af2bc8fc2e7a1d822b55ea057093c1f5eb9cf5c8c1c3b1c01bc47d38f5d87d6dc4cd1d2cd804449a2efd8e97321b81ee675998d0c763db4b64fb48dcecf6093532d46f26fc6911870ee9c7660e01ebcd3bfdd333a1d6c1694aaafb355557275\",\n\"rsa_public_key_exponent\": 65537,\n\"hash\": \"9074E7C1BE2D61D8EB7F\",\n\"key_usages\": [\n],\n\"differnece\": 43,\n\"key\": 11,\n\"id\": \"ee-dev:COM:10264823:volis\",\n\"instance_id\": \"ee-dev\",\n\"member_name\": \"aktsiaselts Andmevara\",\n\"member_class\": \"COM\",\n\"member_code\": \"10264823\",\n\"subsystem_code\": \"volis\",\n\"owner\": false,\n\"has_valid_local_sign_cert\": true,\n\"connection_type\": \"HTTPS\",\n\"status\": \"REGISTERED\"\n},\n{\n\"issuer_distinguished_name\": \"CN=ee-dev:COM:10264823:10264823-ANDMEVARA:zabbix-monitooring, OU=ee-dev, O=Andmevara AS, L=Tallinn, ST=Harjumaa, C=EE\",\n\"issuer_common_name\": \"ee-dev:COM:10264823:10264823-ANDMEVARA:zabbix-monitooring\",\n\"subject_distinguished_name\": \"CN=ee-dev:COM:10264823:10264823-ANDMEVARA:zabbix-monitooring, OU=ee-dev, O=Andmevara AS, L=Tallinn, ST=Harjumaa, C=EE\",\n\"subject_common_name\": \"ee-dev:COM:10264823:10264823-ANDMEVARA:zabbix-monitooring\",\n\"not_before\": \"2018-10-12T07:21:00Z\",\n\"not_after\": \"2026-12-29T07:21:00Z\",\n\"serial\": \"17754873851783288976\",\n\"version\": 3,\n\"signature_algorithm\": \"SHA256withRSA\",\n\"signature\": \"ee38b4dff0c52954b888e92713ee15de2c0cbb15a958d3f065d6d12e261865c02e67a0055ec34071326a766228e8310a3b837285cb198a65f896200856b680dc7410a079c5aac4033b0e84cf7e5b160a4a6fcda7dfa5da0772b39dc8946fa8646d3e1ae8209b2dacee3b000727bfac76035b6b8c32a65daa8891c563bf484fa9b2a996434676063aea8c240db89c59dc77b30f2f01048a0030963a2dd74e42500d06f3ff817e685751ff30a9d8774653f49a7d7ab826217f9510e8419035af914c2\",\n\"public_key_algorithm\": \"RSA\",\n\"rsa_public_key_modulus\": \"c71b10b6330883fc9a7ab82ef0c9384e73a95584a74ceccdae90484477d57a09edf2ac2d14768e6b21c83d600b238c12cb2f655eb2f3898d0c532d57cb123314582f7fb2356dd91a13259887c2a5d4d0e025e426321a651758cf406b4702e3f9b3f6399441d52bc775990ee019d2332e891663ea44cb05212026106bb007a3b0cdf6b25346af660386ffde8b003d0c3c4b7cf179d208fc84c7e185b345289181ec24abfa5060d3cc4744a70729c58ce397e1caf20f7271bde708f4e6ab79aaf5248367ee07b649d74fdb408b41bf6389a48d33\",\n\"rsa_public_key_exponent\": 65537,\n\"hash\": \"4511042B5E8B4\",\n\"key_usages\": [\n],\n\"differnece\": 64,\n\"key\": 1,\n\"id\": \"ee-dev:COM:10264823:10264823-ANDMEVARA\",\n\"instance_id\": \"ee-dev\",\n\"member_name\": \"aktsiaselts Andmevara\",\n\"member_class\": \"COM\",\n\"member_code\": \"10264823\",\n\"subsystem_code\": \"10264823-ANDMEVARA\",\n\"owner\": false,\n\"has_valid_local_sign_cert\": true,\n\"connection_type\": \"HTTPS\",\n\"status\": \"REGISTERED\"\n}\n];\nreturn items;"
      },
      "name": "Mock Data1",
      "type": "n8n-nodes-base.function",
      "typeVersion": 1,
      "position": [
        580,
        670
      ],
      "notesInFlow": true,
      "notes": "Generating data"
    },
    {
      "parameters": {
        "functionCode": "const newItems = [];\nfor (const item of items[0].json) { \nnewItems.push({json: item});\n}\nreturn newItems;"
      },
      "name": "Mock Data2",
      "type": "n8n-nodes-base.function",
      "typeVersion": 1,
      "position": [
        760,
        790
      ]
    },
    {
      "parameters": {
        "functionCode": "const selfsigned = require('selfsigned');\nvar newItem = [];\nvar newItems = [];\nvar obj;\nfor (let i = 0; i < items.length; i++) {\n  newItem = selfsigned.generate(null, { keySize: 2048, days: 3000, lientCertificateCN: items[i].json['subject_common_name'], clientCertificate: true });\n  var myStr = items[i].json['subject_common_name'];;\n  var newStr = myStr.replace(/:/g, '-');\n  newItem.filename = newStr;\n  newItem.id = items[i].json['id'];\n  newItems.push({json: newItem});\n}\nreturn newItems;\n"
      },
      "name": "Mock Data4",
      "type": "n8n-nodes-base.function",
      "typeVersion": 1,
      "position": [
        960,
        790
      ]
    }
  ],
  "connections": {
    "Start": {
      "main": [
        [
          {
            "node": "Mock Data",
            "type": "main",
            "index": 0
          },
          {
            "node": "Mock Data1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Move Binary Data": {
      "main": [
        [
          {
            "node": "Write Binary File1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Mock Data": {
      "main": [
        [
          {
            "node": "Convert Data",
            "type": "main",
            "index": 0
          },
          {
            "node": "Convert Data1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert Data": {
      "main": [
        [
          {
            "node": "Move Binary Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert Data1": {
      "main": [
        [
          {
            "node": "Move Binary Data1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Move Binary Data1": {
      "main": [
        [
          {
            "node": "Write Binary File2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Mock Data1": {
      "main": [
        [
          {
            "node": "Mock Data2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Mock Data2": {
      "main": [
        [
          {
            "node": "Mock Data4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

Hey @alolauri!

Do you want to write the same files multiple times? If thats the case, you can create a loop that executes the nodes multiple times. Just make sure that you have a breaking condition for the loop, otherwise it will end up in an infinite loop.

My idea wirite unique files for example i want write fail pairs

for example json from i want to save to files

[
 {
  "clientprivate": "-----BEGIN RSA PRIVATE KEY----- MIICXQIBAAKBgQDtp6lB+wkKOxCPJiN9Vd0wQ4hxQ/rQURITd2x/C14szwZ0j4hM 0O0jmZ00LRWL5Cj71OligyXZnhJPefWYvhKMaBiN+MaufWbLwT3Y15q/fWAGNG2m 99MPeNQpzr4DI5ydzT6IEFIlJoMT0QEf3AylYn+aM5Q+u00BDUFFoQAvqQIDAQAB AoGAAIs/sez3KlTURt+ZeTH3HaMp7shvDIc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nqUH7CQo7EI8mI31V3TBD iHFD+tBREhN3bH8LXizPBnSPiEzQ7SOZnTQtFYvkKPvU6WKDJdmeEk959Zi+Eoxo GI34xq59ZsvBPdjXmr99YAY0bab30w941CnOvgMjnJ3NPogQUiUmgxPRAR/cDKVi f5ozlD67TQENQUWhAC+pAgMBAAEwDQYJKoZIhvcNAQEFBQADggEBAPHkK4TUJMO7 toqDbw6X8orax9HQlMNtVh/HH1xzXPHxpV6ZVCm5v2t/hbt1Wgu/dzSqTSxsWDem sdfKhKSGtFhQrYeKB637KnXT8JbdW8ZBPDg/FIf6fj+YZhmC+PoFTnQK8bhwFaHQ 80pvkMccv3j9wKmfL6obruqe1xBnxBaDjENj/nekVjlj+g+IaI2TiV95ZYNRWKMp rvT59/X86bKWtFQiHguoXZEUntSdIeMsjblc8G4v1Yfza7v6c1AvI+0Om2PkHcog tcrw8dXs1yvJfEFQ0FY7G53JnRX5y/U8qv5MX2vq0R3lHO303et7yIxxCA6iOApe xs39firi2iY= -----END CERTIFICATE----- ",
  "filename": "proxy",
  "id": "ee-dev:COM:10137025:10137025-tieto"
 },
 {
  "clientprivate": "-----BEGIN RSA PRIVATE KEY----- MIICXAIBAAKBgQC87zseoV3mPFDdl7QlnPCU7yaYf9e/od8zmKY0JfxIEveCn0Eb 99rUdwtZWJcxwVT+WRm4FGKIXjYbQVuhKNyiZoSzhfnvFhm756FbU+95TPdloVjW 1l8YmqCttjcFJXnciUv1XNSwCuOUCKePYzq0zg2PHr5qlhhD4e51/h7/ewIDAQAB AoGANl14W4X/aQKuGjVO5wvTxmdSactPn5rKiSRBnvvXLj4W7oU4zP1zAHQI1frB 9tU0ycOFvQxQlgDV/N2/qg4B/lH93YojLF/m9lUivyMuQySUPqWV1RZ/iYg2Uhp+ 9FVmCZOxxv26rfGnjjJdjC5k/GTq8WtRvq4jTIOHcrNPg/ECQQDw5k7rmjz14/uO aLLjQrcmLSvGSMctQP8fAqVAq+1EMlj22l2v1zyVqqZe2HpDmkMgA6MjNRBkaVUs oKWjKeNPAkEAyMcLFqh6j85+40sCAojHps/UV9bD00z15GtdyAnmptjPG5aro01G +zBL7h9bxPTDGtbEH1T6vDtDbtl4yQyGFQJAA8wNiGco+NM8HtWFpFFj46UooHp7 MTpqCwoWortTBRUqE9IDUgc5fD5xWuNcof4nerSz+JUYigyi/A4YLkc1vwJBAMKy Qc53EmLhm6pN0mUivnjEkOWdHciJmOkoNIkHEOQ62pumQErbZTmwW/FN92/G6mvc V9MKVRqzXXDg8oAD5QECQE+1Rj1zzi8Kg4haBlOBp3YZd1jvp/OjXcFkg2PnS80v sX1NmDqKWK6G7Mw3mP41KWgL5lQTBYNyz1mgRt4xIM8= -----END RSA PRIVATE KEY----- ",
  "clientcert": "-----BEGIN CERTIFICATE----- MIIC1DCCAbygAwIBAgIJezviCy4JS1c0MA0GCSqGSIb3DQEBBQUAMGkxFDASBgNV BAMTC2V4YW1wbGUub3JnMQswCQYDVQQGEwJVUzERMA8GA1UECBMIVmlyZ2luaWEx EzARBgNVBAcTCkJsYWNrc2J1cmcxDTALBgNVBAoTBFRlc3QxDTALBgNVBAsTBFRl c3QwHhcNMjEwOTA2MDgzNjA5WhcNMjIwOTA2MDgzNjA5WjBuMRkwFwYDVQQDExBK b2huIERvZSBqZG9lMTIzMQswCQYDVQQGEwJVUzERMA8GA1UECBMIVmlyZ2luaWEx EzARBgNVBAcTCkJsYWNrc2J1cmcxDTALBgNVBAoTBFRlc3QxDTALBgNVBAsTBFRl c3QwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBALzvOx6hXeY8UN2XtCWc8JTv Jph/17+h3zOYpjQl/EgS94KfQRv32tR3C1lYlzHBVP5ZGbgUYoheNhtBW6Eo3KJm hLOF+e8WGbvnoVtT73lM92WhWNbWXxiaoK22NwUledyJS/Vc1LAK45QIp49jOrTO DY8evmqWGEPh7nX+Hv97AgMBAAEwDQYJKoZIhvcNAQEFBQADggEBAFdHzXhumurT zyJDGHff/AGH2YhVL02K1nN8iAGyUMxln6b8tnCQl79oy84k0JORmfpzCY4qQOXw DW4wwsjHoj9FnTJA4D/aUtX3Pj/Y8bIZMlydJ+pXailuYnetw0Qt5ja0eyt5L+Gu AowBmxKpHI4dkkpW/k7qBZidEztlRHJe8Y0uY+RXjOzziSa5+ojAYU2ULxruGwXg 3SmQBTgBvOT0hYmiZJgNNnBQvAlxlKBI6Bnyv7IZwKADVEdZlccQyXqGTKBL3mUr 89DVUw4DxImxQbxeFcd52dmg/Pl7KQe042x7tj6SQnMVrUsOZxSsDWGbsiy8gPEs xpclRyVnpTo= -----END CERTIFICATE----- ",
  "filename": "10264823-ANDMEVARA",
  "id": "ee-dev:COM:10264823:volis"
 },
 {
  "clientprivate": "-----BEGIN RSA PRIVATE KEY----- MIICXQIBAAKBgQCxQmsUgFlAe6BWX106c2vpLJPJsZvhG3dFMjqd6mzTaxKflxue amIMcfcsim6It+xAHBH9Nch5qMCADKHVtSftBJzo/XuPkP/3zvNE+zodFRz+DoA8 88ZQEVLZgzdTDBRB1wKuwNp+wsdxF/b4JqwqqOF4HjD8MY6TwpyzokyYRQIDAQAB AoGASvbP2ke9dyvRTzXdc47EoEQd7DqUtcqr0jO/3nD5vR+XLK73GzPaa3D3G3sf 6+n8m9BDO1a3hdv8LSsqdfq6+yl4On0OlwCAKwUOqHH0qW7XzAFePeR9TWKu5Vka 2N80QJSu2IOu5f6SlqvIXficuXfDskbV5Sctltx29C/7joECQQDhF/FZd3ErmGJP 7J1G0OwrtYwPUQXMdgafRqGHQ9Js9mqPUz4agbLr09QD1zJwTblopOsTncdjoy0x vKDomtvtAkEAyZkaeBO/FVmV9xXmZY676GUqT3wR/1hl0f6MXoWRvuFATzDQgHIN S2//9ituXNLNuQC3W7UMj2GcC4URlwESuQJBAK+QKSKK0q4aELQd7R3K3inJVBCu NUOf2tJoGJyT/ZAXMk3Ps2ShPJhLg9XrBuAo/y/rUZ7fNSE1qI5efXJvNpECQAt7 qhNO5KJ9sNobKD1+rNtm78sJQSkvStV0T2CO8SdTQ0t/d1DprjIu1gCaprWo2EkC bm9N18JPCAlr8f2M9RkCQQCFqp9oqwEAaCkEB8EhSQmoS4E6DFJ5OTMdRG9+YV7V S6/jaYmM4DwoyjscIMQMaWKhaUBRPS/ZBgKweDijeZ0d -----END RSA PRIVATE KEY----- ",
  "clientcert": "-----BEGIN CERTIFICATE----- MIIC1DCCAbygAwIBAgIJVFkLaJ/2zNauMA0GCSqGSIb3DQEBBQUAMGkxFDASBgNV BAMTC2V4YW1wbGUub3JnMQswCQYDVQQGEwJVUzERMA8GA1UECBMIVmlyZ2luaWEx EzARBgNVBAcTCkJsYWNrc2J1cmcxDTALBgNVBAoTBFRlc3QxDTALBgNVBAsTBFRl c3QwHhcNMjEwOTA2MDgzNjEwWhcNMjIwOTA2MDgzNjEwWjBuMRkwFwYDVQQDExBK b2huIERvZSBqZG9lMTIzMQswCQYDVQQGEwJVUzERMA8GA1UECBMIVmlyZ2luaWEx EzARBgNVBAcTCkJsYWNrc2J1cmcxDTALBgNVBAoTBFRlc3QxDTALBgNVBAsTBFRl c3QwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBALFCaxSAWUB7oFZfXTpza+ks k8mxm+Ebd0UyOp3qbNNrEp+XG55qYgxx9yyKboi37EAcEf01yHmowIAModW1J+0E nOj9e4+Q//fO80T7Oh0VHP4OgDzzxlARUtmDN1MMFEHXAq7A2n7Cx3EX9vgmrCqo 4XgeMPwxjpPCnLOiTJhFAgMBAAEwDQYJKoZIhvcNAQEFBQADggEBAItt6fByU8pc keK/fX1AQhVePH+U7Pulcvra5Kk43WubWMhKcYdeu3f85rI46J7prX2tIcWq8cAX hE5Jy6+QbW6lKc37SXnk5RvocL9m+/fSuobkltLXptec79qgGn1iv32vtM/UKYkj wCCg3KhHPBSeO9mxUFX1RBSxqgSA2Qay495CQps+NYwXG4AXe4l53z3BTipDsJzu LcVi6u0uF6eBl9N8cvSvB+Um4ArGStYq0izTrGdku2EPghgGpWKIdeE9T5NulamU XDIM5HqdoB5NvvjhaE+sfJ02HMoQk4CQpZFQ7gUdUThBtdf85Tap6k8lX6Hkk6Wf SCnFlav+56k= -----END CERTIFICATE----- ",
  "filename": "ee-dev-COM-10264823-10264823-ANDMEVARA-zabbix-monitooring",
  "id": "ee-dev:COM:10264823:10264823-ANDMEVARA"
 }
] 

The file to written

proxy.crt (contain the clientcert value)
proxy.key (contain the clientprivate value)

10264823-ANDMEVARA.crt (contain the clientcert value)
10264823-ANDMEVARA.key (contain the clientprivate value)


ee-dev-COM-10264823-10264823-ANDMEVARA-zabbix-monitooring.crt (contain the clientcert value)
ee-dev-COM-10264823-10264823-ANDMEVARA-zabbix-monitooring.key (contain the clientcert value)

for example tjhe file proxy.crt must contain clientcert value:

-----BEGIN CERTIFICATE----- MIIC1DCCAbygAwIBAgIJFqm2EfMUYM0FMA0GCSqGSIb3DQEBBQUAMGkxFDASBgNV BAMTC2V4YW1wbGUub3JnMQswCQYDVQQGEwJVUzERMA8GA1UECBMIVmlyZ2luaWEx EzARBgNVBAcTCkJsYWNrc2J1cmcxDTALBgNVBAoTBFRlc3QxDTALBgNVBAsTBFRl c3QwHhcNMjEwOTA2MDgzNjA5WhcNMjIwOTA2MDgzNjA5WjBuMRkwFwYDVQQDExBK b2huIERvZSBqZG9lMTIzMQswCQYDVQQGEwJVUzERMA8GA1UECBMIVmlyZ2luaWEx EzARBgNVBAcTCkJsYWNrc2J1cmcxDTALBgNVBAoTBFRlc3QxDTALBgNVBAsTBFRl c3QwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAO2nqUH7CQo7EI8mI31V3TBD iHFD+tBREhN3bH8LXizPBnSPiEzQ7SOZnTQtFYvkKPvU6WKDJdmeEk959Zi+Eoxo GI34xq59ZsvBPdjXmr99YAY0bab30w941CnOvgMjnJ3NPogQUiUmgxPRAR/cDKVi f5ozlD67TQENQUWhAC+pAgMBAAEwDQYJKoZIhvcNAQEFBQADggEBAPHkK4TUJMO7 toqDbw6X8orax9HQlMNtVh/HH1xzXPHxpV6ZVCm5v2t/hbt1Wgu/dzSqTSxsWDem sdfKhKSGtFhQrYeKB637KnXT8JbdW8ZBPDg/FIf6fj+YZhmC+PoFTnQK8bhwFaHQ 80pvkMccv3j9wKmfL6obruqe1xBnxBaDjENj/nekVjlj+g+IaI2TiV95ZYNRWKMp rvT59/X86bKWtFQiHguoXZEUntSdIeMsjblc8G4v1Yfza7v6c1AvI+0Om2PkHcog tcrw8dXs1yvJfEFQ0FY7G53JnRX5y/U8qv5MX2vq0R3lHO303et7yIxxCA6iOApe xs39firi2iY= -----END CERTIFICATE-----

The idea is after the these file are successefully generated the the http request node is used to make REST API POST call with the key id value and filename key value (file name with crt extension) with path

Hey @alolauri,

Based on the dummy data that you provided, you want to create 6 different files with the given content, am I right? And these files should contain a single cert value? The workflow you shared combines all the cert values into a single object. I want to make sure that I understand your question correctly.

Yes But each file contain their unique value according to key values.

proxy.key file content is “clientprivate” key value
“clientprivate”: "-----BEGIN RSA PRIVATE KEY----- MIICXQIBAAKBgQDtp6lB+wkKOxCPJiN9Vd0wQ4hxQ/rQURITd2x/C14szwZ0j4hM 0O0jmZ00LRWL5Cj71OligyXZnhJPefWYvhKMaBiN+MaufWbLwT3Y15q/fWAGNG2m 99MPeNQpzr4DI5ydzT6IEFIlJoMT0QEf3AylYn+aM5Q+u00BDUFFoQAvqQIDAQAB AoGAAIs/sez3KlTURt+ZeTH3HaMp7shvDIcC+ZRuZSQLhSK8KwwhDbv0rv4tA++O exF8nobwOc9/CK558EChNUZKGJMLRjMiYSKa1j3I9xBdeZrKBwiME9e+LhlXa4zN 8Erl8xZ676hMpNl6dl5w/mM+1+ajrcfCPNo/8S0iZHE+lAECQQD9BtJYkrlkiGoe 4OoxzmCJ/IeCqy0riFggYjSK2HBfJwx2l0sLpheHikGUlMlDdxG/r0FLA+Pqt9bO UghqYLbBAkEA8HKYy5Z7816k1urX5btbFiZblI6cPOSWB1iLEZHH89UqNHqhT0BH cFwRjASF+XhQQItdSBtCFugQg+/2Jzpa6QJBAJGJmvPXcUuiK2gXdp2vV1gHKOrA Cvs/MXFvC0nRtNEGZOTRoRjSMDaGD7Km4h0sH8lhxOyhEDeyBpwmEzEc8AECQAXb BJWQqJwYpfMF7RQPJ/y2GmzXvD5PYsfzBA/9eN0bR9fXVK5VZmf6FgNO6ORWZb3s puzmnQlpxV0xLtFtvmECQQD4Ttl3lDoAv3+1YeDlGexdFOmyHIxK/9ySRRpTAKV7 7kvKFuwbUOJKKbSyAaHsrqIHpEhQHPPNh7Rh27Y3kwVI -----END RSA PRIVATE KEY----- "

proxy.crt “clientcert” key value
“clientcert”: "-----BEGIN CERTIFICATE----- MIIC1DCCAbygAwIBAgIJFqm2EfMUYM0FMA0GCSqGSIb3DQEBBQUAMGkxFDASBgNV BAMTC2V4YW1wbGUub3JnMQswCQYDVQQGEwJVUzERMA8GA1UECBMIVmlyZ2luaWEx EzARBgNVBAcTCkJsYWNrc2J1cmcxDTALBgNVBAoTBFRlc3QxDTALBgNVBAsTBFRl c3QwHhcNMjEwOTA2MDgzNjA5WhcNMjIwOTA2MDgzNjA5WjBuMRkwFwYDVQQDExBK b2huIERvZSBqZG9lMTIzMQswCQYDVQQGEwJVUzERMA8GA1UECBMIVmlyZ2luaWEx EzARBgNVBAcTCkJsYWNrc2J1cmcxDTALBgNVBAoTBFRlc3QxDTALBgNVBAsTBFRl c3QwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAO2nqUH7CQo7EI8mI31V3TBD iHFD+tBREhN3bH8LXizPBnSPiEzQ7SOZnTQtFYvkKPvU6WKDJdmeEk959Zi+Eoxo GI34xq59ZsvBPdjXmr99YAY0bab30w941CnOvgMjnJ3NPogQUiUmgxPRAR/cDKVi f5ozlD67TQENQUWhAC+pAgMBAAEwDQYJKoZIhvcNAQEFBQADggEBAPHkK4TUJMO7 toqDbw6X8orax9HQlMNtVh/HH1xzXPHxpV6ZVCm5v2t/hbt1Wgu/dzSqTSxsWDem sdfKhKSGtFhQrYeKB637KnXT8JbdW8ZBPDg/FIf6fj+YZhmC+PoFTnQK8bhwFaHQ 80pvkMccv3j9wKmfL6obruqe1xBnxBaDjENj/nekVjlj+g+IaI2TiV95ZYNRWKMp rvT59/X86bKWtFQiHguoXZEUntSdIeMsjblc8G4v1Yfza7v6c1AvI+0Om2PkHcog tcrw8dXs1yvJfEFQ0FY7G53JnRX5y/U8qv5MX2vq0R3lHO303et7yIxxCA6iOApe xs39firi2iY= -----END CERTIFICATE-----

In that case, I would create different objects for each file. This is what my incoming data would look like:

[
  {
    "certvalue": "-----BEGIN RSA PRIVATE KEY----- MIICXQIBAAKBgQDtp6lB+wkKOxCPJiN9Vd0wQ4hxQ/rQURITd2x/C14szwZ0j4hM 0O0jmZ00LRWL5Cj71OligyXZnhJPefWYvhKMaBiN+MaufWbLwT3Y15q/fWAGNG2m 99MPeNQpzr4DI5ydzT6IEFIlJoMT0QEf3AylYn+aM5Q+u00BDUFFoQAvqQIDAQAB AoGAAIs/sez3KlTURt+ZeTH3HaMp7shvDIcC+ZRuZSQLhSK8KwwhDbv0rv4tA++O exF8nobwOc9/CK558EChNUZKGJMLRjMiYSKa1j3I9xBdeZrKBwiME9e+LhlXa4zN 8Erl8xZ676hMpNl6dl5w/mM+1+ajrcfCPNo/8S0iZHE+lAECQQD9BtJYkrlkiGoe 4OoxzmCJ/IeCqy0riFggYjSK2HBfJwx2l0sLpheHikGUlMlDdxG/r0FLA+Pqt9bO UghqYLbBAkEA8HKYy5Z7816k1urX5btbFiZblI6cPOSWB1iLEZHH89UqNHqhT0BH cFwRjASF+XhQQItdSBtCFugQg+/2Jzpa6QJBAJGJmvPXcUuiK2gXdp2vV1gHKOrA Cvs/MXFvC0nRtNEGZOTRoRjSMDaGD7Km4h0sH8lhxOyhEDeyBpwmEzEc8AECQAXb BJWQqJwYpfMF7RQPJ/y2GmzXvD5PYsfzBA/9eN0bR9fXVK5VZmf6FgNO6ORWZb3s puzmnQlpxV0xLtFtvmECQQD4Ttl3lDoAv3+1YeDlGexdFOmyHIxK/9ySRRpTAKV7 7kvKFuwbUOJKKbSyAaHsrqIHpEhQHPPNh7Rh27Y3kwVI -----END RSA PRIVATE KEY----- ",
    "filename": "proxy",
    "id": "ee-dev:COM:10137025:10137025-tieto"
  },
  {
    "certvalue": "-----BEGIN CERTIFICATE----- MIIC1DCCAbygAwIBAgIJFqm2EfMUYM0FMA0GCSqGSIb3DQEBBQUAMGkxFDASBgNV BAMTC2V4YW1wbGUub3JnMQswCQYDVQQGEwJVUzERMA8GA1UECBMIVmlyZ2luaWEx EzARBgNVBAcTCkJsYWNrc2J1cmcxDTALBgNVBAoTBFRlc3QxDTALBgNVBAsTBFRl c3QwHhcNMjEwOTA2MDgzNjA5WhcNMjIwOTA2MDgzNjA5WjBuMRkwFwYDVQQDExBK b2huIERvZSBqZG9lMTIzMQswCQYDVQQGEwJVUzERMA8GA1UECBMIVmlyZ2luaWEx EzARBgNVBAcTCkJsYWNrc2J1cmcxDTALBgNVBAoTBFRlc3QxDTALBgNVBAsTBFRl c3QwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAO2nqUH7CQo7EI8mI31V3TBD iHFD+tBREhN3bH8LXizPBnSPiEzQ7SOZnTQtFYvkKPvU6WKDJdmeEk959Zi+Eoxo GI34xq59ZsvBPdjXmr99YAY0bab30w941CnOvgMjnJ3NPogQUiUmgxPRAR/cDKVi f5ozlD67TQENQUWhAC+pAgMBAAEwDQYJKoZIhvcNAQEFBQADggEBAPHkK4TUJMO7 toqDbw6X8orax9HQlMNtVh/HH1xzXPHxpV6ZVCm5v2t/hbt1Wgu/dzSqTSxsWDem sdfKhKSGtFhQrYeKB637KnXT8JbdW8ZBPDg/FIf6fj+YZhmC+PoFTnQK8bhwFaHQ 80pvkMccv3j9wKmfL6obruqe1xBnxBaDjENj/nekVjlj+g+IaI2TiV95ZYNRWKMp rvT59/X86bKWtFQiHguoXZEUntSdIeMsjblc8G4v1Yfza7v6c1AvI+0Om2PkHcog tcrw8dXs1yvJfEFQ0FY7G53JnRX5y/U8qv5MX2vq0R3lHO303et7yIxxCA6iOApe xs39firi2iY= -----END CERTIFICATE----- ",
    "filename": "proxy",
    "id": "ee-dev:COM:10137025:10137025-tieto"
  }
]

For example i have manage to transform incoming data

[
  {
    "clientprivate": "-----BEGIN RSA PRIVATE KEY----- MIICWwIBAAKBgQDlJjcqfkXvOOyKj8dNtWRXkETVRy4Zk81VGn2P6eReF+06q4nb 9zPM8Z/75ZDA2S6iGZ7WJ58OAC5R+YpQpOf1vcMxNXCYlsePuOGhzTQ14K5rIFZb XEaCM9vKpfPmBR+fveFBCNZeLgIr5jxT4PMB9VRfc1pf5efuttrH8LqeRQIDAQAB AoGAYaSVIUBJYJRrBugZTx2aMk3BZvg7xp5agocVNfu+WfHsHnH1/ospwYy8VUQP GH3zBxPPwQWFGxwsoLWqoI6EYD4IE9813lz6lhtdFZp1d6JlRh1W5x3NKTVucNlH XB4wZ2d8TZkQVCATSjkjIDvDDJl/f3+oKDSMU6M/6UHkfAkCQQD5pwbBAJhc9rh8 Rt0p9zm45hm6JvF/zQNxB3nvirGzJaj6Iqwsu0fzgNM4BHlDLNE4JXJ0QO6XutxH nWITa5h/AkEA6vm8Mx2AQ4+UWqlj0a/ryMQ5inDcwUhQS/2QiU6WtJwF+6XkzXUd ctCaL0KRH/QPJVILfnOhMBEE3wJSEL0HOwJAA7uvqissHBfEYndcz0fXISCvuczj R5n1Nzd5Z0+XoKorgLIMCQ8z4DxI7EmE1rBQ4JoOwBZIexRcPuXnlYrCWQJAd03D Y4SYCjWNUpbsyptysOYIfSUewLgxpNOinkSbuin507KAQF01TYVis5otyzaEtiM5 GMQm1BvgCEbKWhtP3wJAD58WEDrcG/fsEdRjSNqeNHB0M6fgmWwgPxlmr0mNlWYR FAopST4v83M5culYv2eeVbbBpkOSYZBhr1lvtLnhOA== -----END RSA PRIVATE KEY----- ",
    "clientcert": "-----BEGIN CERTIFICATE----- MIIC1DCCAbygAwIBAgIJQ+PEEEDUUPbaMA0GCSqGSIb3DQEBBQUAMGkxFDASBgNV BAMTC2V4YW1wbGUub3JnMQswCQYDVQQGEwJVUzERMA8GA1UECBMIVmlyZ2luaWEx EzARBgNVBAcTCkJsYWNrc2J1cmcxDTALBgNVBAoTBFRlc3QxDTALBgNVBAsTBFRl c3QwHhcNMjEwOTA3MTAyMjM2WhcNMjIwOTA3MTAyMjM2WjBuMRkwFwYDVQQDExBK b2huIERvZSBqZG9lMTIzMQswCQYDVQQGEwJVUzERMA8GA1UECBMIVmlyZ2luaWEx EzARBgNVBAcTCkJsYWNrc2J1cmcxDTALBgNVBAoTBFRlc3QxDTALBgNVBAsTBFRl c3QwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAOUmNyp+Re847IqPx021ZFeQ RNVHLhmTzVUafY/p5F4X7Tqridv3M8zxn/vlkMDZLqIZntYnnw4ALlH5ilCk5/W9 wzE1cJiWx4+44aHNNDXgrmsgVltcRoIz28ql8+YFH5+94UEI1l4uAivmPFPg8wH1 VF9zWl/l5+622sfwup5FAgMBAAEwDQYJKoZIhvcNAQEFBQADggEBAJ8jZEwqrP8X g1347doxHndM+DWnPSlXn2xwLzNs0P86eYn22N5SsnHX5MD34HL4U4X8dIp4+OYy t352SrFcJLSZ9npgu7Caskkq3+QxpeEEZxvTVjW80oNk8+qoYinNJbkpYbXiJgDd xzHInkh7JgawvmRDTV5BXsHORYIxxV5dUmxXx8iGeZsPLpIkP1Ldh5s1EZKr51KL nrhPoe0QJBSg8ICl340EOCJSYHb0iHw4xzCn4LOBI0m1g9Ipu0dEAqpYsgkoLI6d FG6TGvDh5cNzAT+NUdfUi/mGW9w20jtjqWhdw94xGyb8t9g2OPMUj0QbegbjUBUB fKKnbRfdijc= -----END CERTIFICATE----- ",
    "filename": "proxy",
    "id": "ee-dev:COM:10137025:10137025-tieto"
  },
  {
     "clientprivate": "-----BEGIN RSA PRIVATE KEY----- MIICWwIBAAKBgQCv06sWqNz9kiyvgfX45t4GM3doE2KxmhG5hTgYLjWXP0BhV4sr lkrWu0LF4bd1K5zzNFbzLOSeX/e4uWpIuto7WAf4BTfq+mJ54hdsDIhaMNkNKc/l Bko8ihbkbKtTwZ8ujXQK9WadMgonPaequ2ojxCU4tu2TH3JpvHvx8swP0wIDAQAB AoGACVH9Fbxpyn8/IyaOdV03k7iSsc+lQajbG6x2JsH8UUInFYHgfLUAzpUqmva2 FN30+ediXI2aqNKJfR9HBQfynXApJeS+3NRaxCSu4/pihZPK+qzpYfMBVqVqx/Ds o1ZQ4vk8GsEtphhuS/27QtfTPLKPxEWY6mEcJHRwJkZfN9ECQQDiO8gmrwaSLICX HFOCB2JyMToMQBlPWLr10R4OYhw3o8k5T6CkSi2FGUccv3dq+3iEKzE/K8GauBmx xZLkBlB/AkEAxvYKABTvXvSlxMnScPhZSZgq9lqs4i2pwiZuG+wNnNSKKjTsNkIS YLddsdZTNzltEfWxl4D5A7s6oP76NgNWrQJACOf5lSxGwfJmjYxb7T6FLaGqe1j6 phkEIzE8UayjF72m6k6sMEuLRzYbipIvDVMhB3L72VTLpl+hA1KX2co12QJAFb4p lZy0FBJ0Uy8jGklpqItClq2OGyGWXatJeS+wxSTM/JPQBJXv4DXpvVeIvI5AByhs gfwMOoYpgBKdUW3H+QJASEl2qR3hzQcml4/1So4ws4ET0985cfD8TEMQteWkf59r UEc2fo4A8fDdlqeoB7nV1Up6fKLVgLXwlb/DoufFNA== -----END RSA PRIVATE KEY----- ",
     "clientcert": "-----BEGIN CERTIFICATE----- MIIC1DCCAbygAwIBAgIJV9i54x942355MA0GCSqGSIb3DQEBBQUAMGkxFDASBgNV BAMTC2V4YW1wbGUub3JnMQswCQYDVQQGEwJVUzERMA8GA1UECBMIVmlyZ2luaWEx EzARBgNVBAcTCkJsYWNrc2J1cmcxDTALBgNVBAoTBFRlc3QxDTALBgNVBAsTBFRl c3QwHhcNMjEwOTA3MTAyMjM2WhcNMjIwOTA3MTAyMjM2WjBuMRkwFwYDVQQDExBK b2huIERvZSBqZG9lMTIzMQswCQYDVQQGEwJVUzERMA8GA1UECBMIVmlyZ2luaWEx EzARBgNVBAcTCkJsYWNrc2J1cmcxDTALBgNVBAoTBFRlc3QxDTALBgNVBAsTBFRl c3QwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAK/Tqxao3P2SLK+B9fjm3gYz d2gTYrGaEbmFOBguNZc/QGFXiyuWSta7QsXht3UrnPM0VvMs5J5f97i5aki62jtY B/gFN+r6YnniF2wMiFow2Q0pz+UGSjyKFuRsq1PBny6NdAr1Zp0yCic9p6q7aiPE JTi27ZMfcmm8e/HyzA/TAgMBAAEwDQYJKoZIhvcNAQEFBQADggEBAE1iWNqHhgsb KEdte+c7u1cJjjg1fWHksVVV3Zam0RbGH/Qcu66HZYewnuB97kCFaWqtZojlifI2 ZFnwcDWxyQ5nFbI8BXYkq4B16coIVNujHRpyofEnv9jiEtjua/j7+7fqg7Fmn6yh 8+0ndo2J2jhcF1lPs0QxGpVXb6ynnoybvZxynnhrqDlzQCuAk+DWgt/hLi6jdM1d FCdUVbgcEJqBOZAUIv+SX12D4JqtOjDkHPt33ubJCDoxf9Z6sQ0q5nUFkgPJP/JC NamtD6C6DTlPqpsDoOMu+7Hj7Y/D9RDLtJtk41C/ZbYzxFwOCfwxHMwLM+p+nmf8 ZjN6ajkUEFg= -----END CERTIFICATE----- ",
     "filename": "10264823-ANDMEVARA",
     "id": "ee-dev:COM:10264823:volis"
  },
  {
     "clientprivate": "-----BEGIN RSA PRIVATE KEY----- MIICXQIBAAKBgQDDcI3KBmyn2ievKHgbXJIuCvcB1wmjzkdY/4efzfmeDoAH4EgV rH7KHxbrWCnV6CL67talkbgDtRIYeLEoT9h6uEx1n3W/DnOmTeh6FSZs0SdxdcP9 xtK9sz6tKjVCN+WPFT6OHPrCilvW/GVekzucr7IrwHC6nVryQvfozBkUyQIDAQAB AoGBAKLDthIuT4drE+m4Vm7TJZra3uPVZt3ZCWqBRT49mEmd4dqtWttSETXbtobB ofXXompBRtoVBZ9wyWU//qqH9MypEhsfUEfFtuFexUo7a+rd+ppy0thsGUvugJfp ds4oR1Xfedy9uMOm53+uHgeViyd4I+HaRcmWofxD7Bt+NU4BAkEA9vXlf1fsrUbA Oqt/fNmByrXC7k9cK0rDJqKS4mXnF7ihLppDk5G8xx4YvG92CpDeeLga2RM4QCMx ZgXjmQIeeQJBAMqX47N4w0k5LEqg12Uli7oT/C0TW1A28qbRKt/vEIjR435xIK6R 0n06OP+ZzOZ2HMaZSP2LAaPM5LBA/XCy1NECQHMpbbC5bpvK718slBHDV/wQUGtS xJdHkMNWcopynJX6OeeCdlq9TjvINB7DF1eMAMJoj9SEWunFv4Zk3qJ+U3kCQAm2 en4yPfqWuR7i0zDQOgCz0JVAplIUMFH7GTkfNwW4OlXnio+UAilqzyzB7Obnpr2G v88YCP4XZqdklkH+8OECQQCJOLsdqcBxCNNU/BFLdRZN++H6r9qEPajzBELGEXRr qyQlXxIS/UwNExATTf7BqHibGVe8qpigQx4BwxY8BkgN -----END RSA PRIVATE KEY----- ",
     "clientcert": "-----BEGIN CERTIFICATE----- MIIC1DCCAbygAwIBAgIJcSUMPKCrAv4qMA0GCSqGSIb3DQEBBQUAMGkxFDASBgNV BAMTC2V4YW1wbGUub3JnMQswCQYDVQQGEwJVUzERMA8GA1UECBMIVmlyZ2luaWEx EzARBgNVBAcTCkJsYWNrc2J1cmcxDTALBgNVBAoTBFRlc3QxDTALBgNVBAsTBFRl c3QwHhcNMjEwOTA3MTAyMjM3WhcNMjIwOTA3MTAyMjM3WjBuMRkwFwYDVQQDExBK b2huIERvZSBqZG9lMTIzMQswCQYDVQQGEwJVUzERMA8GA1UECBMIVmlyZ2luaWEx EzARBgNVBAcTCkJsYWNrc2J1cmcxDTALBgNVBAoTBFRlc3QxDTALBgNVBAsTBFRl c3QwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAMNwjcoGbKfaJ68oeBtcki4K 9wHXCaPOR1j/h5/N+Z4OgAfgSBWsfsofFutYKdXoIvru1qWRuAO1Ehh4sShP2Hq4 THWfdb8Oc6ZN6HoVJmzRJ3F1w/3G0r2zPq0qNUI35Y8VPo4c+sKKW9b8ZV6TO5yv sivAcLqdWvJC9+jMGRTJAgMBAAEwDQYJKoZIhvcNAQEFBQADggEBAFhQrI6tzvKs kyIcGWHTL8cAwTizsdSfA72BXZjBEuxMmkdctQ3JU8ufHzoVrzE1s8YdAoVu0Nve SjjE+XS6j3bMLL4D58YtUygzu2BjjobXeM4sVULadBANagXKlAkyzMTzqEPq4MqN LFb3A6983XjudMZF7O3KIxJqsB6HpqRBh9NwrPJ5T5/qVC261LgZmlL1touLFAtT O0t8JOEjOeKMfl7nUed8Ni+CU8aokFLeBkaH68y+LZDEV6GWpqBN/fjK3nFJszu7 d2+NDaiMqhKDlVP4hOGYqZw7pXzof4IWJs1eBZ2SaPfcupj5+dJ2K5EbgHTBUJDn 02l4fCOSCc4= -----END CERTIFICATE----- ",
     "filename": "ee-dev-COM-10264823-10264823-ANDMEVARA-zabbix-monitooring",
     "id": "ee-dev:COM:10264823:10264823-ANDMEARA"
  }
] 

Is it possible some how to writw key “clientprivate” and “clientcert” values to to files wihich key filename is value is file name and these files have same nme but diffient file extensions . Fille which has key “clientprivate” value the file extension is key and “clientcert” value the file extension is crt. Fore example

proxy.key
proxy.crt
10264823-ANDMEVARA.key
10264823-ANDMEVARA.crt
ee-dev-COM-10264823-10264823-ANDMEVARA-zabbix-monitooring.key
ee-dev-COM-10264823-10264823-ANDMEVARA-zabbix-monitooring.crt

Is it possible some how use this json or miodified json to Move binary and then to Writw binary file nodes to write/generate tehes files

Hey @alolauri,

The data still looks similar to last one. I am not sure what has changed. Also, a quick tip - when you share code/data do wrap them in backticks(```). This way it is properly formatted and easy to read :slight_smile:

Here is an interesting question Editing a custom Function Node code to iterate

Where are solving similar subject writing multiple files using json data input (filename , key value)
Where on problem i not so experienced that cant implement this approach in my case

Ah yes. In that use case, the data was on separate lines. If you can transform the data structure in the structure that I suggested it would become easy to handle it.

If you can’t create the structure at the early stage, you can alternatively transform it down the line. To help you understand the steps:

  1. Use the SplitInBatches node to split the items in a batch of one.
  2. Use the Function node to return the content (clientprivate) and the file name.
  3. Write the file to the disk.
  4. Have another Function node and extract the remaining content (clientcert) and file name and pass it to another Write Binary file node.
  5. Connect the output of the last Write Binary file node to the SplitInBatches node to create a loop.

I modified my work flow based on example question “Editing a custom Function Node code”

{
  "nodes": [
    {
      "parameters": {},
      "name": "Start",
      "type": "n8n-nodes-base.start",
      "typeVersion": 1,
      "position": [
        250,
        300
      ]
    },
    {
      "parameters": {
        "functionCode": "items[0].json = [\n{\n\"issuer_distinguished_name\": \"CN=proxy, O=MISP2, C=EE\",\n\"issuer_common_name\": \"proxy\",\n\"subject_distinguished_name\": \"CN=proxy, O=MISP2, C=EE\",\n\"subject_common_name\": \"proxy\",\n\"not_before\": \"2015-02-19T15:34:21Z\",\n\"not_after\": \"2023-05-08T15:34:21Z\",\n\"serial\": \"15002966229041785427\",\n\"version\": 1,\n\"signature_algorithm\": \"SHA1withRSA\",\n\"signature\": \"7837a0b303b656a4b64b320b63da637f567ca22b8dc5dac98e6f8425d49020fbc0f50022a622d34e3713255f2b8e672aba3b57f381b1ca9adbda977db2c438b558b8bdca5f53f66fa2516d46344d60e99d987171b25772b3447975e2af4ced1d3e66aedb75b92ffebc755709139bc30218a579b7187c490dcb7c8db7ff571a6d\",\n\"public_key_algorithm\": \"RSA\",\n\"rsa_public_key_modulus\": \"cdaf83a4cde4b2500a3db4627cb95dbb0efd17c98e3d302718beef1869eb947723ce1192f36be32730d74ef10b852fae72f0c85a80e3bf254be68b7849207d42248001fbbd7955f53908ed790e0e96ffdf7b0cf19221e53b822439edcf6e3583cbd1edcc0f91f75ef7d664ec55f85e840decaebfe8095f04f0c42ca38b4bbc05\",\n\"rsa_public_key_exponent\": 65537,\n\"hash\": \"C122A11AAA6ECEF455771CC0C9EE2ED7894C68A9\",\n\"key_usages\": [\n],\n\"differnece\": 21,\n\"key\": 40,\n\"id\": \"ee-dev:COM:10137025:10137025-tieto\",\n\"instance_id\": \"ee-dev\",\n\"member_name\": \"Tieto Estonia Aktsiaselts\",\n\"member_class\": \"COM\",\n\"member_code\": \"10137025\",\n\"subsystem_code\": \"10137025-tieto\",\n\"owner\": false,\n\"has_valid_local_sign_cert\": true,\n\"connection_type\": \"HTTPS\",\n\"status\": \"REGISTERED\"\n},\n{\n\"issuer_distinguished_name\": \"CN=10264823-ANDMEVARA, OU=ee-dev:COM:10264823, O=Andmevara, C=EE\",\n\"issuer_common_name\": \"10264823-ANDMEVARA\",\n\"subject_distinguished_name\": \"CN=10264823-ANDMEVARA, OU=ee-dev:COM:10264823, O=Andmevara, C=EE\",\n\"subject_common_name\": \"10264823-ANDMEVARA\",\n\"not_before\": \"2016-12-15T14:14:11Z\",\n\"not_after\": \"2025-03-03T14:14:11Z\",\n\"serial\": \"13596881388653279962\",\n\"version\": 3,\n\"signature_algorithm\": \"SHA256withRSA\",\n\"signature\": \"a9346c97be8642ca1856ebf205a1f9933bd265c924480e642558e340c4ac96c5f7c86ae37b05dee74d893fa5846917d1d0e986174dc1de4df622bd68d53d6b69944131781063db68ae564c50a12f1aa869148a3bd0d0346a68321096a7a7b25d5756a61c9bd76cefc3525aad6acc49b883533ead0b0a15dce10c543c5e06cb1f1b1429999d85236c023217b6e4403089886924a5557dcb1067eca537591a53dc5557657a8898f0ec2986aa879147583e33a1de734c7fdb88cb10b9e067b4385fbcf121755a6b71aba4d1ee52a00a96dc7636b087f94263f23f918a55bd93e228d49d0f5bcbed6c60c9d16fbcb091a62726ffb5b6430077884bec031b40e2f0cb\",\n\"public_key_algorithm\": \"RSA\",\n\"rsa_public_key_modulus\": \"aefc70c9ca1026ac3845a6bd87d5d54e1f1332540cd1344b4352f421265f12b9739b9ca4343042fce72f25f2b353d425b5872cc9277ed23a43a3131c2c1a5337c3dab5c19338fbd54614c245940c5321e02e70bb29fb11a2b52b9d552d25c4a3b52bd60767ccbbbb1d8e3a2334d8f9d32cc686cb3a1329f310590bd34cdcfc7356478807f030bac174d5234b635c499a8192eac9ec2921d08db0cca9386d8a419af2bc8fc2e7a1d822b55ea057093c1f5eb9cf5c8c1c3b1c01bc47d38f5d87d6dc4cd1d2cd804449a2efd8e97321b81ee675998d0c763db4b64fb48dcecf6093532d46f26fc6911870ee9c7660e01ebcd3bfdd333a1d6c1694aaafb355557275\",\n\"rsa_public_key_exponent\": 65537,\n\"hash\": \"90744A4B6705322DF3A1C842E7C1BE2D61D8EB7F\",\n\"key_usages\": [\n],\n\"differnece\": 43,\n\"key\": 11,\n\"id\": \"ee-dev:COM:10264823:volis\",\n\"instance_id\": \"ee-dev\",\n\"member_name\": \"aktsiaselts Andmevara\",\n\"member_class\": \"COM\",\n\"member_code\": \"10264823\",\n\"subsystem_code\": \"volis\",\n\"owner\": false,\n\"has_valid_local_sign_cert\": true,\n\"connection_type\": \"HTTPS\",\n\"status\": \"REGISTERED\"\n},\n{\n\"issuer_distinguished_name\": \"CN=ee-dev:COM:10264823:10264823-ANDMEVARA:zabbix-monitooring, OU=ee-dev, O=Andmevara AS, L=Tallinn, ST=Harjumaa, C=EE\",\n\"issuer_common_name\": \"ee-dev:COM:10264823:10264823-ANDMEVARA:zabbix-monitooring\",\n\"subject_distinguished_name\": \"CN=ee-dev:COM:10264823:10264823-ANDMEVARA:zabbix-monitooring, OU=ee-dev, O=Andmevara AS, L=Tallinn, ST=Harjumaa, C=EE\",\n\"subject_common_name\": \"ee-dev:COM:10264823:10264823-ANDMEVARA:zabbix-monitooring\",\n\"not_before\": \"2018-10-12T07:21:00Z\",\n\"not_after\": \"2026-12-29T07:21:00Z\",\n\"serial\": \"17754873851783288976\",\n\"version\": 3,\n\"signature_algorithm\": \"SHA256withRSA\",\n\"signature\": \"bba6d3f09f70af34bd0197223962a40db862e789afe16ef508b45b3f4d7aa19a34b4bdc6b76c2351ca85e00c1bb16b5ab7c96c11c98ee38b4dff0c52954b888e92713ee15de2c0cbb15a958d3f065d6d12e261865c02e67a0055ec34071326a766228e8310a3b837285650270e69df301df4fcb198a65f896200856b680dc7410a079c5aac4033b0e84cf7e5b160a4a6fcda7dfa5da0772b39dc8946fa8646d3e1ae8209b2dacee3b000727bfac76035b6b8c32a65daa8891c563bf484fa9b2a996434676063aea8c240db89c59dc77b30f2f01048a0030963a2dd74e42500d06f3ff817e685751ff30a9d8774653f49a7d7ab826217f9510e8419035af914c2\",\n\"public_key_algorithm\": \"RSA\",\n\"rsa_public_key_modulus\": \"c71b10b6330883fc9a7ab82ef9551bcbce92184e1a4a6512497a3775b331b36c4448e700768d7c73a2807b31a592a7b1103856aad9921b646d70c9384e73a95584a74ceccdae90484477d57a09edf2ac2d14768e6b21c83d600b238c12cb2f655eb2f3898d0c532d57cb123314582f7fb2356dd91a13259887c2a5d4d0e025e426321a651758cf406b4702e3f9b3f6399441d52bc775990ee019d2332e891663ea44cb05212026106bb007a3b0cdf6b25346af660386ffde8b003d0c3c4b7cf179d208fc84c7e185b345289181ec24abfa5060d3cc4744a70729c58ce397e1caf20f7271bde708f4e6ab79aaf5248367ee07b649d74fdb408b41bf6389a48d33\",\n\"rsa_public_key_exponent\": 65537,\n\"hash\": \"45110423F82C86CCBECF4A149A7728F762B5E8B4\",\n\"key_usages\": [\n],\n\"differnece\": 64,\n\"key\": 1,\n\"id\": \"ee-dev:COM:10264823:10264823-ANDMEVARA\",\n\"instance_id\": \"ee-dev\",\n\"member_name\": \"aktsiaselts Andmevara\",\n\"member_class\": \"COM\",\n\"member_code\": \"10264823\",\n\"subsystem_code\": \"10264823-ANDMEVARA\",\n\"owner\": false,\n\"has_valid_local_sign_cert\": true,\n\"connection_type\": \"HTTPS\",\n\"status\": \"REGISTERED\"\n}\n];\nreturn items;"
      },
      "name": "Mock Data1",
      "type": "n8n-nodes-base.function",
      "typeVersion": 1,
      "position": [
        500,
        300
      ]
    },
    {
      "parameters": {
        "functionCode": "const newItems = [];\nfor (const item of items[0].json) { \nnewItems.push({json: item});\n}\nreturn newItems;"
      },
      "name": "Mock Data2",
      "type": "n8n-nodes-base.function",
      "typeVersion": 1,
      "position": [
        690,
        320
      ]
    },
    {
      "parameters": {
        "functionCode": "const selfsigned = require('selfsigned');\nvar newItem = [];\nvar newItems = [];\nvar obj;\nfor (let i = 0; i < items.length; i++) {\n  newItem = selfsigned.generate(null, { keySize: 2048, days: 3000, lientCertificateCN: items[i].json['subject_common_name'], clientCertificate: true });\n  delete newItem[\"private\"];\n  delete newItem[\"public\"];\n  delete newItem[\"cert\"];\n  delete newItem[\"fingerprint\"];\n  delete newItem[\"clientpublic\"];\n  var myStr = items[i].json['subject_common_name'];\n  var newStr = myStr.replace(/:/g, '-');\n  newItem.filename = newStr;\n  newItem.id = items[i].json['id'];\n  newItems.push({json: newItem});\n}\nreturn newItems;\n"
      },
      "name": "Mock Data4",
      "type": "n8n-nodes-base.function",
      "typeVersion": 1,
      "position": [
        900,
        330
      ]
    },
    {
      "parameters": {
        "fileName": "={{$binary.data.fileName}}",
        "dataPropertyName": "= {{$binary.data.cert}}"
      },
      "name": "Write Binary File3",
      "type": "n8n-nodes-base.writeBinaryFile",
      "typeVersion": 1,
      "position": [
        1390,
        330
      ]
    },
    {
      "parameters": {
        "functionCode": "IterateImages = [];\ni = 0;\nfor (const item of items)  {\n  IterateImages.push({\n    json: {},\n    binary: {\n    data: {\n      cert: item.json[\"clientcert\"],\n      fileName: item.json[\"filename\"],\n      }\n    }\n});\n}\nreturn IterateImages;\n"
      },
      "name": "Convert Data2",
      "type": "n8n-nodes-base.function",
      "typeVersion": 1,
      "position": [
        1140,
        330
      ]
    }
  ],
  "connections": {
    "Start": {
      "main": [
        [
          {
            "node": "Mock Data1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Mock Data1": {
      "main": [
        [
          {
            "node": "Mock Data2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Mock Data2": {
      "main": [
        [
          {
            "node": "Mock Data4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Mock Data4": {
      "main": [
        [
          {
            "node": "Convert Data2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert Data2": {
      "main": [
        [
          {
            "node": "Write Binary File3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

But then exected this workflow the Write Binary file got strange error :confused:

ERROR: The binary property " -----BEGIN CERTIFICATE----- MIIC1DCCAbygAwIBAgIJB+rb5uvnXc0eMA0GCSqGSIb3DQEBBQUAMGkxFDASBgNV BAMTC2V4YW1wbGUub3JnMQswCQYDVQQGEwJVUzERMA8GA1UECBMIVmlyZ2luaWEx EzARBgNVBAcTCkJsYWNrc2J1cmcxDTALBgNVBAoTBFRlc3QxDTALBgNVBAsTBFRl c3QwHhcNMjEwOTA4MDkwNTQ0WhcNMjIwOTA4MDkwNTQ0WjBuMRkwFwYDVQQDExBK b2huIERvZSBqZG9lMTIzMQswCQYDVQQGEwJVUzERMA8GA1UECBMIVmlyZ2luaWEx EzARBgNVBAcTCkJsYWNrc2J1cmcxDTALBgNVBAoTBFRlc3QxDTALBgNVBAsTBFRl c3QwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAL8XzFNp1fzeLz+nrAhwehZV Y4wZj70N8QJ+GwBM62vIzk8co2yzOFMrUBNNDx5flET9cFl8XcZDn3/jEIYRzMCj 0QjQhHfO/LagjKxGwONsbTr/eigI+8fgfROuXwglv4QMkR2iA9GLFUSxy+Lkv+t/ AaQ5Unv4P7UbrFCKkMb1AgMBAAEwDQYJKoZIhvcNAQEFBQADggEBAKkbchkoWS1+ aUZc90IlyGcZTIuPIliQK5BbXQRTW3Zw//acBdEalFNVI75gwjUuTvVuJH65AT5t +yGZD+zcVDfdpeboL3xXr/XF5S13VFHDPT+nH24lpswC1c6BKRFeE/HK8fc3o8Jp yMXNUbRPc5sor7NEo1T00GJBezDuARdTCwRylpm0oZkQMCfYe6MRwZ2W4DK76F+O Y8JhKeBX5ean4pTHuQDIH4qvhzg4z+81XdjJfpUWpFBcATzMrQcsvtD5fMQ+hTL3 o8yMyHECNOoX+xOctTQJYEsQ75yyM7CVFeVsI1htoDgW5YX5KlFYT4zi5WIWStfX BlHLjZBpXBw= -----END CERTIFICATE----- " does not exist. So no file can be written!
Details
Time
9/8/2021, 12:05:45 PM
Cause
Data below may contain sensitive information. Proceed with caution when sharing.
{
}
Stack

NodeOperationError: The binary property " -----BEGIN CERTIFICATE-----

MIIC1DCCAbygAwIBAgIJB+rb5uvnXc0eMA0GCSqGSIb3DQEBBQUAMGkxFDASBgNV

BAMTC2V4YW1wbGUub3JnMQswCQYDVQQGEwJVUzERMA8GA1UECBMIVmlyZ2luaWEx

EzARBgNVBAcTCkJsYWNrc2J1cmcxDTALBgNVBAoTBFRlc3QxDTALBgNVBAsTBFRl

c3QwHhcNMjEwOTA4MDkwNTQ0WhcNMjIwOTA4MDkwNTQ0WjBuMRkwFwYDVQQDExBK

b2huIERvZSBqZG9lMTIzMQswCQYDVQQGEwJVUzERMA8GA1UECBMIVmlyZ2luaWEx

EzARBgNVBAcTCkJsYWNrc2J1cmcxDTALBgNVBAoTBFRlc3QxDTALBgNVBAsTBFRl

c3QwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAL8XzFNp1fzeLz+nrAhwehZV

Y4wZj70N8QJ+GwBM62vIzk8co2yzOFMrUBNNDx5flET9cFl8XcZDn3/jEIYRzMCj

0QjQhHfO/LagjKxGwONsbTr/eigI+8fgfROuXwglv4QMkR2iA9GLFUSxy+Lkv+t/

AaQ5Unv4P7UbrFCKkMb1AgMBAAEwDQYJKoZIhvcNAQEFBQADggEBAKkbchkoWS1+

aUZc90IlyGcZTIuPIliQK5BbXQRTW3Zw//acBdEalFNVI75gwjUuTvVuJH65AT5t

+yGZD+zcVDfdpeboL3xXr/XF5S13VFHDPT+nH24lpswC1c6BKRFeE/HK8fc3o8Jp

yMXNUbRPc5sor7NEo1T00GJBezDuARdTCwRylpm0oZkQMCfYe6MRwZ2W4DK76F+O

Y8JhKeBX5ean4pTHuQDIH4qvhzg4z+81XdjJfpUWpFBcATzMrQcsvtD5fMQ+hTL3

o8yMyHECNOoX+xOctTQJYEsQ75yyM7CVFeVsI1htoDgW5YX5KlFYT4zi5WIWStfX

BlHLjZBpXBw=

-----END CERTIFICATE-----

" does not exist. So no file can be written!
    at Object.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/WriteBinaryFile.node.js:57:27)
    at Workflow.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/src/Workflow.js:492:37)
    at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/src/WorkflowExecute.js:424:62
    at processTicksAndRejections (internal/process/task_queues.js:95:5)

Is this the output that gets returned by the Mock Data4 Function node?

If not, can you please share the output?

Yes the Mock data 4 function retruns


[
{
"clientprivate": "-----BEGIN RSA PRIVATE KEY----- MIICXQIBAAKBgQC/F8xTadX83i8/p6wIcHoWVWOMGY+9DfECfhsATOtryM5PHKNs szhTK1ATTQ8eX5RE/XBZfF3GQ59/4xCGEczAo9EI0IR3zvy2oIysRsDjbG06/3oo CPvH4H0Trl8IJb+EDJEdogPRixVEscvi5L/rfwGkOVJ7+D+1G6xQipDG9QIDAQAB AoGAHamXCPerxNXEZdAkLycufFsC2dN58XHBkI58qH5IKPIBvFwIri3ft2FIy8Yx a5iQjmj80Jcygz0p/BMGFJmcu6Gw7SnQz+gHNdscKvviyLXh1ZGL1lhhOYp0EkQd /heymtmrYVKlQ9YZxgLP08RGz1SjsFsMvEcmISVAFuBepkECQQDouEijfmAasWw9 Qe2d/TZKTHdMHXO0v9/3ivHdl66zMAJkcSJvZ7QFrDI7U5UDzRNuy19rjyMs10R9 sx9f4nlRAkEA0jV+DLaHagfAZupC2Qk3ZXRzZAH9Exfyln2zynslQ4kTYNpTX72M CPsmbcRcxgh4ZrPQuc4iXcfOeL+8623KZQJBAJMPUSevxn9XuvSC4utBhbsx0vlQ azu/PIKrVOgY4BbvsbN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ylpm0oZkQMCfYe6MRwZ2W4DK76F+O Y8JhKeBX5ean4pTHuQDIH4qvhzg4z+81XdjJfpUWpFBcATzMrQcsvtD5fMQ+hTL3 o8yMyHECNOoX+xOctTQJYEsQ75yyM7CVFeVsI1htoDgW5YX5KlFYT4zi5WIWStfX BlHLjZBpXBw= -----END CERTIFICATE----- ",
"filename": "proxy",
"id": "ee-dev:COM:10137025:10137025-tieto"
},
{
"clientprivate": "-----BEGIN RSA PRIVATE KEY----- MIICWwIBAAKBgQCirBTKx9OQec/ESSnwtnramjn02ZMoWy6IQ+RU+oszoj1nm7Ye PMyXGxMTblfPhoQ6G1Z1qqTPpfm5DL9xj+dvwvY58htrNlvLLjZFFnTucxZUeQ8V Bn6maHJr3r8/61TmDjUwcNVAa7l4UgLNsALVSU304+OSjTsTXR0Yr2n2jQIDAQAB AoGAMY73bqfePn+92nDnxBvz5bFiwsOeX4cX8A+u+myyB/L/fhckLqYbNlXbQ+oz +ldi5Uj62DI6r8BDCitmD7TlrtxyeipGePRVwZLQq6/RAY7WoPog9A1FsW6HKkfA TBzSLBsfhWmwgnO/T+8HlYtXF0bgKJiQ8rd3AShrIWxWZYkCQQDSWM9UXMLyoQyE NIMMWkv4TBOD14sSNl2ywaMcR6aIoUedgqw40AHkDeeqTQR8PlS9NSGcAhF+HTd5 NdoA8r9nAkEAxfpkbSropTEQxH5aj7LCsKOjCPARYAo+PorzFeDeLEhDT9pIZwa0 QaP6iHt9nmKwht93pZ0y5F9Rrb2GVibF6wJATzgXTWRqH0q8FgZY3IwdVHQCXYMN 41wKScpXjc0GUSq8d/vAtNzR+XurJh4/dDNdYqzh7Ylx4RdLzyCS7AyAPQJAAYmh UAu+RNItvCjzERylUHPk50PeDq3lr9yqaKgXcaaaBzu9xjcSHVRltLuozRsdHd8M cdfXtlhbLQtEyNSCQwJAc6WV+GZ1K2MeaniDpP4FtP5jpT1dRcBPVKcohzhEicVx sjKqy6EGn4wJ7B9R2D97dwddJ7p6FjOU39zUzw3VAg== -----END RSA PRIVATE KEY----- ",
"clientcert": "-----BEGIN CERTIFICATE----- MIIC1DCCAbygAwIBAgIJcv7wYpxqOvNcMA0GCSqGSIb3DQEBBQUAMGkxFDASBgNV BAMTC2V4YW1wbGUub3JnMQswCQYDVQQGEwJVUzERMA8GA1UECBMIVmlyZ2luaWEx EzARBgNVBAcTCkJsYWNrc2J1cmcxDTALBgNVBAoTBFRlc3QxDTALBgNVBAsTBFRl c3QwHhcNMjEwOTA4MDkwNTQ0WhcNMjIwOTA4MDkwNTQ0WjBuMRkwFwYDVQQDExBK b2huIERvZSBqZG9lMTIzMQswCQYDVQQGEwJVUzERMA8GA1UECBMIVmlyZ2luaWEx EzARBgNVBAcTCkJsYWNrc2J1cmcxDTALBgNVBAoTBFRlc3QxDTALBgNVBAsTBFRl c3QwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAKKsFMrH05B5z8RJKfC2etqa OfTZkyhbLohD5FT6izOiPWebth48zJcbExNuV8+GhDobVnWqpM+l+bkMv3GP52/C 9jnyG2s2W8suNkUWdO5zFlR5DxUGfqZocmvevz/rVOYONTBw1UBruXhSAs2wAtVJ TfTj45KNOxNdHRivafaNAgMBAAEwDQYJKoZIhvcNAQEFBQADggEBAEgoWAbR7W4U xx/8O3J0vGI/cnRzxHQ7f4+bX5kKueOngViL20GhZ9QbnClN90WKrf1XkqBKkgdP tjT1Ew2jgVPe0Q/BIwmf1SqpXmOCE6sWje3gPOujlBaQmL/8K90whCf6ZnN+8R9S 5Erh9wh7XEErHSC3z8iA9brK5twa9rBJOMlWfeJtvppeAUi/xh7UaToJojYAkkcq rmgvSt63bEI6tF8djWR+ypyDZqFUOjslp1M6Yv2LXgq7EUmqF/G6gogmxyvj2fS0 6wmWO5voqr8gMN+OTTZ3Z/c0N/cG89kd2nVugbfbUTsFhv7k+JV3DM8XS6+j3jLp vbAUhSTQ53U= -----END CERTIFICATE----- ",
"filename": "10264823-ANDMEVARA",
"id": "ee-dev:COM:10264823:volis"
},
{
"clientprivate": "-----BEGIN RSA PRIVATE KEY----- MIICXwIBAAKBgQDe/Slr8ywbqekAeE1KNudZ3aisR3JvyXH+HPsDWAJgpaXJTWDi bWGhA9HRrigJLpn14tdBAnfxUemLZcTP1MusL8PLjemxqKbhHh+hyr6Lef/X0iFy dJ1nDRDy5rN+IdwwEBwl46vnx6RURQpB2waplSx22jKKg7lpS4rch0lO4wIDAQAB AoGBAL01gUU45E9g3/VnHuX/KlWFkM8GHOMfwlsFyjPvJK1PQRpLTw8yEuomLI5H wW7xHPCYF1/xMUcR4yJGKzbScDJIDZ//SUW7iotjCVISvkXzu0cVUHVy1TgX/sq3 MePtzxQWUgZiS2o4Ja0A8VO9sWL1YiEs7fIa4UeKi61WqUWxAkEA9IYE53xkDQrX VIJjeQPZwJ9RpQ5ajCy+vFoPnwM5yiqje3YD3hyWPuJLW+dYBgQ6QwdqBvLDw8C7 0WMX6hEbOwJBAOl0ZtdK6hWHe85e/lHy2sdclGhX02fN0yxt+SIchPWsnVX4h2sj eQ2j+Qjj6jyx9h+rtz6ZaGHQEnwkoQEDUHkCQQDNPiSlrMpKDDx7qcoWzH2c6d1c 3rRwDiq27B1KiimaoLmCKqfKalJOTCGW7ZL70daZZoK/fEuHZqH/ed6b0Gn7AkEA pu1pf7X8bUqEF0tLVDNvhi/Hmlh6PHYq8lDsXBzCYZx8n/VmdxBVRZCiyF2XprCl SX4SN/ufbJlILmZOjZfeGQJBAMXLk9I3RlGt3JerbGPYDhq9XMsOBr7pLgCzSc8y e9KZVA6YElCwvs6a3DznAA4suOFi1lRArG//gdymwoeii/g= -----END RSA PRIVATE KEY----- ",
"clientcert": "-----BEGIN CERTIFICATE----- MIIC1DCCAbygAwIBAgIJbezQ5N3LHmD3MA0GCSqGSIb3DQEBBQUAMGkxFDASBgNV BAMTC2V4YW1wbGUub3JnMQswCQYDVQQGEwJVUzERMA8GA1UECBMIVmlyZ2luaWEx EzARBgNVBAcTCkJsYWNrc2J1cmcxDTALBgNVBAoTBFRlc3QxDTALBgNVBAsTBFRl c3QwHhcNMjEwOTA4MDkwNTQ1WhcNMjIwOTA4MDkwNTQ1WjBuMRkwFwYDVQQDExBK b2huIERvZSBqZG9lMTIzMQswCQYDVQQGEwJVUzERMA8GA1UECBMIVmlyZ2luaWEx EzARBgNVBAcTCkJsYWNrc2J1cmcxDTALBgNVBAoTBFRlc3QxDTALBgNVBAsTBFRl c3QwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAN79KWvzLBup6QB4TUo251nd qKxHcm/Jcf4c+wNYAmClpclNYOJtYaED0dGuKAkumfXi10ECd/FR6YtlxM/Uy6wv w8uN6bGopuEeH6HKvot5/9fSIXJ0nWcNEPLms34h3DAQHCXjq+fHpFRFCkHbBqmV LHbaMoqDuWlLityHSU7jAgMBAAEwDQYJKoZIhvcNAQEFBQADggEBAHvH0iFdWzzv QqF5X+/du/Pz8R3hvJ3KKHP2m5meVz45Uc744nDqV6UNjjEsn5xhBuDXpJwXpjbO R8XbXrjp5PkczKfCOCQVcOBzH0wmLj7BsptiTOlkIpOpuOVEgV+hHdTbYjb87QeT xzNm8yZF0ODgRUVWoa8TntMeQ208pU06w+qAmQYAbgaVakjby6bjHDXaO2UnnSFu coGEJxxudiPe5fIfRdYxuJRVECrK1pMKFrF8Ys0hwoo6z+xJbr32PjUgAU/M+vWq FsR4QXzcXcIT3n2KrPx84uu5nZyunRevYPVOMRENvN0G3H7P10GU2M9SRw6E9mOW 5npV9cv3njE= -----END CERTIFICATE----- ",
"filename": "ee-dev-COM-10264823-10264823-ANDMEVARA-zabbix-monitooring",
"id": "ee-dev:COM:10264823:10264823-ANDMEVARA"
}
] 

Hey @alolauri!

Here’s the workflow that might be helpful

{
  "nodes": [
    {
      "parameters": {
        "functionCode": "return [\n{json:{\n\"clientprivate\": \"-----BEGIN RSA PRIVATE KEY----- MIICXQIBAAKBgQC/F8xTadX83i8/p6wIcHoWVWOMGY+9DfECfhsATOtryM5PHKNs szhTK1ATT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MQswCQYDVQQGEwJVUzERMA8GA1UECBMIVmlyZ2luaWEx EzARBgNVBAcTCkJsYWNrc2J1cmcxDTALBgNVBAoTBFRlc3QxDTALBgNVBAsTBFRl c3QwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAL8XzFNp1fzeLz+nrAhwehZV Y4wZj70N8QJ+GwBM62vIzk8co2yzOFMrUBNNDx5flET9cFl8XcZDn3/jEIYRzMCj 0QjQhHfO/LagjKxGwONsbTr/eigI+8fgfROuXwglv4QMkR2iA9GLFUSxy+Lkv+t/ AaQ5Unv4P7UbrFCKkMb1AgMBAAEwDQYJKoZIhvcNAQEFBQADggEBAKkbchkoWS1+ aUZc90IlyGcZTIuPIliQK5BbXQRTW3Zw//acBdEalFNVI75gwjUuTvVuJH65AT5t +yGZD+zcVDfdpeboL3xXr/XF5S13VFHDPT+nH24lpswC1c6BKRFeE/HK8fc3o8Jp yMXNUbRPc5sor7NEo1T00GJBezDuARdTCwRylpm0oZkQMCfYe6MRwZ2W4DK76F+O Y8JhKeBX5ean4pTHuQDIH4qvhzg4z+81XdjJfpUWpFBcATzMrQcsvtD5fMQ+hTL3 o8yMyHECNOoX+xOctTQJYEsQ75yyM7CVFeVsI1htoDgW5YX5KlFYT4zi5WIWStfX BlHLjZBpXBw= -----END CERTIFICATE----- \",\n\"filename\": \"proxy\",\n\"id\": \"ee-dev:COM:10137025:10137025-tieto\"\n}},\n{json:{\n\"clientprivate\": \"-----BEGIN RSA PRIVATE KEY----- MIICWwIBAAKBgQCirBTKx9OQec/ESSnwtnramjn02ZMoWy6IQ+RU+oszoj1nm7Ye PMyXGxMTblfPhoQ6G1Z1qqTPpfm5DL9xj+dvwvY58htrNlvLLjZFFnTucxZUeQ8V Bn6maHJr3r8/61TmDjUwcNVAa7l4UgLNsALVSU304+OSjTsTXR0Yr2n2jQIDAQAB AoGAMY73bqfePn+92nDnxBvz5bFiwsOeX4cX8A+u+myyB/L/fhckLqYbNlXbQ+oz +ldi5Uj62D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48zJcbExNuV8+GhDobVnWqpM+l+bkMv3GP52/C 9jnyG2s2W8suNkUWdO5zFlR5DxUGfqZocmvevz/rVOYONTBw1UBruXhSAs2wAtVJ TfTj45KNOxNdHRivafaNAgMBAAEwDQYJKoZIhvcNAQEFBQADggEBAEgoWAbR7W4U xx/8O3J0vGI/cnRzxHQ7f4+bX5kKueOngViL20GhZ9QbnClN90WKrf1XkqBKkgdP tjT1Ew2jgVPe0Q/BIwmf1SqpXmOCE6sWje3gPOujlBaQmL/8K90whCf6ZnN+8R9S 5Erh9wh7XEErHSC3z8iA9brK5twa9rBJOMlWfeJtvppeAUi/xh7UaToJojYAkkcq rmgvSt63bEI6tF8djWR+ypyDZqFUOjslp1M6Yv2LXgq7EUmqF/G6gogmxyvj2fS0 6wmWO5voqr8gMN+OTTZ3Z/c0N/cG89kd2nVugbfbUTsFhv7k+JV3DM8XS6+j3jLp vbAUhSTQ53U= -----END CERTIFICATE----- \",\n\"filename\": \"10264823-ANDMEVARA\",\n\"id\": \"ee-dev:COM:10264823:volis\"\n}},\n{json:{\n\"clientprivate\": \"-----BEGIN RSA PRIVATE KEY----- MIICXwIBAAKBgQDe/Slr8ywbqekAeE1KNudZ3aisR3JvyXH+HPsDWAJgpaXJTWDi bWGhA9HRrigJLpn14tdBAnfxUemLZcTP1MusL8PLjemxqKbhHh+hyr6Lef/X0iFy dJ1nDRDy5rN+IdwwEBwl46vnx6RURQpB2waplSx22jKKg7lpS4rch0lO4wIDAQAB AoGBAL01gUU45E9g3/VnHuX/KlWFkM8GHOMfwlsFyjPvJK1PQRpLTw8yEuomLI5H wW7xHPCYF1/xMUcR4yJGKzbScDJIDZ//SUW7iotjCVISvkXzu0cVUHVy1TgX/sq3 MePtzxQWUgZiS2o4Ja0A8VO9sWL1YiEs7fIa4UeKi61WqUWxAkEA9IYE53xkDQrX VIJjeQPZwJ9RpQ5ajCy+vFoPnwM5yiqje3YD3hyWPuJLW+dYBgQ6QwdqBvLDw8C7 0WMX6hEbOwJ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KKHP2m5meVz45Uc744nDqV6UNjjEsn5xhBuDXpJwXpjbO R8XbXrjp5PkczKfCOCQVcOBzH0wmLj7BsptiTOlkIpOpuOVEgV+hHdTbYjb87QeT xzNm8yZF0ODgRUVWoa8TntMeQ208pU06w+qAmQYAbgaVakjby6bjHDXaO2UnnSFu coGEJxxudiPe5fIfRdYxuJRVECrK1pMKFrF8Ys0hwoo6z+xJbr32PjUgAU/M+vWq FsR4QXzcXcIT3n2KrPx84uu5nZyunRevYPVOMRENvN0G3H7P10GU2M9SRw6E9mOW 5npV9cv3njE= -----END CERTIFICATE----- \",\n\"filename\": \"ee-dev-COM-10264823-10264823-ANDMEVARA-zabbix-monitooring\",\n\"id\": \"ee-dev:COM:10264823:10264823-ANDMEVARA\"\n}}\n]"
      },
      "name": "Mock Data4",
      "type": "n8n-nodes-base.function",
      "typeVersion": 1,
      "position": [
        707.2277936962751,
        258.79226361031516
      ]
    },
    {
      "parameters": {
        "fileName": "={{$json[\"file\"]}}.key"
      },
      "name": "Write Binary File3",
      "type": "n8n-nodes-base.writeBinaryFile",
      "typeVersion": 1,
      "position": [
        1284.227793696275,
        112.79226361031516
      ]
    },
    {
      "parameters": {
        "functionCode": "// Code here will run once per input item.\n// More info and help: https://docs.n8n.io/nodes/n8n-nodes-base.functionItem\n\n// Add a new field called 'myNewField' to the JSON of the item\nitem ={clientprivate: $json.clientprivate, file: $json.filename};\n\n// You can write logs to the browser console\nconsole.log('Done!');\n\nreturn item;"
      },
      "name": "FunctionItem",
      "type": "n8n-nodes-base.functionItem",
      "typeVersion": 1,
      "position": [
        904.2277936962751,
        112.79226361031516
      ]
    },
    {
      "parameters": {
        "mode": "jsonToBinary",
        "convertAllData": false,
        "sourceKey": "clientprivate",
        "options": {
          "useRawData": true
        }
      },
      "name": "Move Binary Data",
      "type": "n8n-nodes-base.moveBinaryData",
      "typeVersion": 1,
      "position": [
        1104.227793696275,
        112.79226361031516
      ]
    },
    {
      "parameters": {
        "fileName": "={{$json[\"file\"]}}.cert"
      },
      "name": "Write Binary File",
      "type": "n8n-nodes-base.writeBinaryFile",
      "typeVersion": 1,
      "position": [
        1287.227793696275,
        358.79226361031516
      ]
    },
    {
      "parameters": {
        "functionCode": "// Code here will run once per input item.\n// More info and help: https://docs.n8n.io/nodes/n8n-nodes-base.functionItem\n\n// Add a new field called 'myNewField' to the JSON of the item\nitem ={clientprivate: $json.clientcert, file: $json.filename};\n\n// You can write logs to the browser console\nconsole.log('Done!');\n\nreturn item;"
      },
      "name": "FunctionItem1",
      "type": "n8n-nodes-base.functionItem",
      "typeVersion": 1,
      "position": [
        907.2277936962751,
        358.79226361031516
      ]
    },
    {
      "parameters": {
        "mode": "jsonToBinary",
        "convertAllData": false,
        "sourceKey": "clientprivate",
        "options": {
          "useRawData": true
        }
      },
      "name": "Move Binary Data1",
      "type": "n8n-nodes-base.moveBinaryData",
      "typeVersion": 1,
      "position": [
        1107.227793696275,
        358.79226361031516
      ]
    }
  ],
  "connections": {
    "Mock Data4": {
      "main": [
        [
          {
            "node": "FunctionItem",
            "type": "main",
            "index": 0
          },
          {
            "node": "FunctionItem1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "FunctionItem": {
      "main": [
        [
          {
            "node": "Move Binary Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Move Binary Data": {
      "main": [
        [
          {
            "node": "Write Binary File3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "FunctionItem1": {
      "main": [
        [
          {
            "node": "Move Binary Data1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Move Binary Data1": {
      "main": [
        [
          {
            "node": "Write Binary File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

Many thanks . This solved the problem

1 Like