Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eamon0989/0685dfdf8f663b0ee633e1e58937b860 to your computer and use it in GitHub Desktop.
Save eamon0989/0685dfdf8f663b0ee633e1e58937b860 to your computer and use it in GitHub Desktop.
Validate Certificate Node-Red flow
[
{
"id": "26f6e289b3fab452",
"type": "tab",
"label": "Validate Certificate",
"disabled": false,
"info": "",
"env": []
},
{
"id": "8e060cd8e0287093",
"type": "inject",
"z": "26f6e289b3fab452",
"name": "Verify Certificate",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 220,
"y": 160,
"wires": [
[
"eb3589bc5a1eb08c"
]
]
},
{
"id": "05e799dddf96b541",
"type": "http request",
"z": "26f6e289b3fab452",
"name": "",
"method": "POST",
"ret": "txt",
"paytoqs": "ignore",
"url": "https://app.s1seven.ovh/api/certificates/verify?mode=test",
"tls": "",
"persist": false,
"proxy": "",
"authType": "",
"senderr": false,
"x": 610,
"y": 160,
"wires": [
[
"ecc3ac7d13f75bf0"
]
]
},
{
"id": "314196406ec27dd6",
"type": "debug",
"z": "26f6e289b3fab452",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"x": 910,
"y": 160,
"wires": []
},
{
"id": "ecc3ac7d13f75bf0",
"type": "json",
"z": "26f6e289b3fab452",
"name": "",
"property": "payload",
"action": "",
"pretty": false,
"x": 770,
"y": 160,
"wires": [
[
"314196406ec27dd6"
]
]
},
{
"id": "eb3589bc5a1eb08c",
"type": "function",
"z": "26f6e289b3fab452",
"name": "Get certificate",
"func": "const certificate = global.get('certificate');\nif (certificate) {\n msg.payload = certificate;\n return msg;\n} else {\n node.warn('No certificate found, please upload a JSON certificate via the UI');\n}\n",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 420,
"y": 160,
"wires": [
[
"05e799dddf96b541"
]
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment