{"_id":"@cappern/node-red-tls-cert-info","_rev":"3-5edb288d6917a110c495299215c9f846","name":"@cappern/node-red-tls-cert-info","dist-tags":{"latest":"1.1.3"},"versions":{"1.0.0":{"name":"@cappern/node-red-tls-cert-info","version":"1.0.0","description":"","main":"TlsCertInfoNode.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["node-red"],"node-red":{"nodes":{"TlsCertInfoNode":"TlsCertInfoNode.js"}},"author":"","license":"ISC","dependencies":{"crypto":"^1.0.1","tls":"^0.0.1"},"gitHead":"7c2ae78d61e5e1338f9de5e3bdec4d6f88a6635d","_id":"@cappern/node-red-tls-cert-info@1.0.0","_nodeVersion":"14.21.1","_npmVersion":"9.6.2","dist":{"integrity":"sha512-GUMIzK2s6+/WRksqfNPlSHBUO30mkJzUuprZ8TLzeqgir9otPcuL2IwVDh8dGL3qKomMMQ4tP4VVVhxJlHoUKw==","shasum":"89bf6e6e27e7112bb7b699c0975e4d80f106aad1","tarball":"https://registry.npmjs.org/@cappern/node-red-tls-cert-info/-/node-red-tls-cert-info-1.0.0.tgz","fileCount":6,"unpackedSize":44249,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDDKsKoJRwCxRSe9rurQXIZhe8sH9VaG46B2uBO8ka+wAiEA2Q3RTFhPOICPc3d/ul66Yh1AErrm7i3Qv158VbZ7eLU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkRGBQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmotPw//cAYcTZVyeqrG+RwLxsGKVrmuFZj6XXROZruv/t723pIM/pEr\r\nwoEYftDnhqeSHZ95I2I3jEXKAYDrO+NshmrKLiyVXohXIegR38oON21rYWMn\r\njXHEs9T2zlW+ZFrv+oDs1AtqWG4Ep6ycnZHPaGBa2VkKP77dI45es+McNVQo\r\ny4BN81cA3e2ljqdGigheUmUeh25N8hM1XnScjKYMze11X8MMxz77T9H9yQNk\r\n8d+0Sok1pXv1FuozY6MR2xF9JqW/POb7hxecfdNCPNwVaCPVvb6CWrjXvKO+\r\ncIbCt8Kbqutfn7m4Tp89PZUANPHW6Tm1Zd24wNIdmuZl43QOD/clbZ2gMjq1\r\nFCY1mCBjVjOuUkj0M3bdwou2FmnUnGBPkK2AHTpSRJ+tur9Pfgi30rlKPSlx\r\nwxEUSV9zm8brFjrSO6FRFAo26z5DSePJIYAFelgRxghlrzRPulgZTctzHATg\r\nOIKNCFJowQg+wfJKZjn1DlcP0kChTJOkDWUyfoh6V0zaHTic/ecvD4SxKYZa\r\n4JYIX1EAGX37Yw0VYa9NXF5peH57kgBCkMVfykHs2kJkfkKLdMbRZl/lwL+m\r\nYcCXPvXdXBa+UFptYaoHUnccQ1zXdjR0rmrxmkwpL5c5L3SLEfNN8WI2i4Vv\r\nguMkBSWH5S/EnW8gbXzHvjK0OSL4PTq6Pm8=\r\n=9Tpb\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"cappern","email":"christoffer@cappelen.org"},"directories":{},"maintainers":[{"name":"cappern","email":"christoffer@cappelen.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/node-red-tls-cert-info_1.0.0_1682202704721_0.7052153551880509"},"_hasShrinkwrap":false},"1.1.1":{"name":"@cappern/node-red-tls-cert-info","version":"1.1.1","description":"A Node-RED node that retrieves SSL/TLS certificate information from a given host and port.","main":"TlsCertInfoNode.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/cappern/node-red-tls-cert-info.git"},"keywords":["node-red","tls","ssl-cert"],"node-red":{"nodes":{"TlsCertInfoNode":"TlsCertInfoNode.js"}},"author":{"name":"cappern"},"license":"MIT","bugs":{"url":"https://github.com/cappern/node-red-tls-cert-info/issues"},"homepage":"https://github.com/cappern/node-red-tls-cert-info#readme","gitHead":"d7a89ed8a1dba7789d35a206c565c7746db0a501","_id":"@cappern/node-red-tls-cert-info@1.1.1","_nodeVersion":"14.21.1","_npmVersion":"9.6.2","dist":{"integrity":"sha512-UcNx2hQ8kZgIQn8S5YivEnQtjIdfMUlO+7SUAyCdZ8QCc99rA7Tmn6hYbqG6sFiLHNjvhl61ur5hLdTx2R7r4w==","shasum":"18340e436414ecbec068369db53a01fa2014a93f","tarball":"https://registry.npmjs.org/@cappern/node-red-tls-cert-info/-/node-red-tls-cert-info-1.1.1.tgz","fileCount":6,"unpackedSize":46561,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDOKsKPCm9bY1dPqh3ca2jb3R5aDWuKZ2TVoL081uw+ZQIhAM7KFO381wumhBuI1WfZZULfOLniC0hB51L0CSOf2k+J"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkRO+2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqoQA//TxMz8z9ir6zil7VJ7kf3CvQkMrlhZS6QQF8t/2u5awV5vVod\r\n0B6DShYluvwj7StOyTWsdAfZ3A9K1Ty55HcFFhGDBsvuIw9CtnHRe3o4rGhP\r\nKbHRBEJxzCK+k6mo27jOmz8AfT2jkBopjDqHRyC57r6n60OnXsZms0kKpNjx\r\nDOmw2qvWWOoePxxJe2nmD1EonFIdkIHjSr6mXvBdwAhWtmNXoCNVcgynrIBd\r\n7fCV/Idaayjb6qfA62eNi4UAKkvGcxVv+jvRyp9dhu4wTt9rwpdqOEiRca7t\r\nWehvlS0BtdJY45Ukx0ssWbyDp4O78/8xvrBGC60GrLr9Bfb859QoLm3c7Zc3\r\n/rud3GrUxK/IMtJtbnOgH8Sj+AoEtvlfDqtyLglkx06jOdMC4nOgeJiWPeIA\r\nu5JN2zCKRHWMRysrhkTIkKAtlf+6Vx/c96wczWXm17wp/moYoZ686QFUXun8\r\nX6DfwNc1Ss7hISc9gwgEqbs1fRJwl0vwURWpfcFsoihSidgXVOX5tVZDXc2g\r\n3SELp/QEwXKnWmn8JR+iAu+H/BqPYIQvghGMMHJ5QqJZL/jjCyCb+/Bnbp3/\r\nMGJqB8nDlePpBptQF51Bi3uX1PXL0KW1ifUDVNJFUs/hEMW9akxGxp96+3Vq\r\nBbSdjx/EwEAdHSipMIzmuTPxch9KJG96Bik=\r\n=MSxI\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"cappern","email":"christoffer@cappelen.org"},"directories":{},"maintainers":[{"name":"cappern","email":"christoffer@cappelen.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/node-red-tls-cert-info_1.1.1_1682239414506_0.6202568335187939"},"_hasShrinkwrap":false},"1.1.2":{"name":"@cappern/node-red-tls-cert-info","version":"1.1.2","description":"A Node-RED node that retrieves SSL/TLS certificate information from a given host and port.","engines":{"node":">=18.15.0"},"main":"TlsCertInfoNode.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/cappern/node-red-tls-cert-info.git"},"keywords":["node-red","tls","ssl-cert"],"node-red":{"version":">=2.0.0","nodes":{"TlsCertInfoNode":"TlsCertInfoNode.js"}},"author":{"name":"cappern"},"license":"MIT","bugs":{"url":"https://github.com/cappern/node-red-tls-cert-info/issues"},"homepage":"https://github.com/cappern/node-red-tls-cert-info#readme","gitHead":"0428e72cfa7764eb7fa42f3cb7ea64eea8e0c212","_id":"@cappern/node-red-tls-cert-info@1.1.2","_nodeVersion":"18.15.0","_npmVersion":"9.5.0","dist":{"integrity":"sha512-ZD8q069VKk99qBb66To560ZKQ4SnMhNgLCwYF4HnqgHVdvWFj+YwACl/Y0kwfhsgtf9w1BXO6C9EzdM080klPQ==","shasum":"11163938ee6cbda72f182781c8e54fb29f16e00b","tarball":"https://registry.npmjs.org/@cappern/node-red-tls-cert-info/-/node-red-tls-cert-info-1.1.2.tgz","fileCount":8,"unpackedSize":43137,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICRzwwc5uaCqvyvmJWINcUwLNjrvbtBEnNT2YxymhbvWAiEAi3JmoeaRaXH9F5GVKXcPuyAY9t5N5yANCrY4NMagUAk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkRkf1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrYOQ//bc3zJgZCq94zW2WFbNKA1i545urPZlIcnU1oXEym3bUVpkzl\r\nfBUNzk7/wAIFnFeqDGrbo5sUnf5x0GMtpfFNNQQ4KrJ+kDK6wv1qlpvrgiij\r\nbCIckYXIRmJw6BXf3Nv72+7eFb4ZCiIc/4+IAIXxqaX9cFUWFOJPHY2FFnIM\r\nVLv8iFPCe0tcaspf+lamp7EsLjZZU68pdoO1/mp/v0XtbaRkpvTw4aOJDb6V\r\nZ1+ayKMh/vZKcYSUVRjGEliWzmrLduGjwjBw585FCEmsqgpwBRAuGccYXuRp\r\na/DWMaUV3NMylTgKkB01sNjhwFCQ8ylLaTR8dmagRLsbNW6XSlvZhwnXCW76\r\nqRZzPBKoHEH6G8lnB3oBhWxn+TNU9N+Bak1sdqw6K14E6ywMrB8Nhdca/zrX\r\nCH7Y26Mez6+tKDOEmxGnYLh5uzv3vpevXWtdv+ZwtaReHKI9NdCf6CGlYLbW\r\n2bkMUKDonS7d3O15ZlSo0XD3gSvnXnXuAUtBk1OFCokLeLeFV26uSI1NEnVy\r\ntDSq1Fh+IzRkER/p+eI9VAFJKtpjpDDbaMQ6ohGdKTBn/xsUcfWRfwffZe0R\r\nYwHAZelBI1VAoT2s5pANDjtqSGbdvXN9Zvp7vC/L9x/xy2g1oIUXQ4FSamL/\r\n0e8frAqhrYXf+jjY1czY7/bJUxqB5nC/j6w=\r\n=OInd\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"cappern","email":"christoffer@cappelen.org"},"directories":{},"maintainers":[{"name":"cappern","email":"christoffer@cappelen.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/node-red-tls-cert-info_1.1.2_1682327541056_0.36009966438529983"},"_hasShrinkwrap":false},"1.1.3":{"name":"@cappern/node-red-tls-cert-info","version":"1.1.3","description":"A Node-RED node that retrieves SSL/TLS certificate information from a given host and port.","engines":{"node":">=16.16.0"},"main":"TlsCertInfoNode.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/cappern/node-red-tls-cert-info.git"},"keywords":["node-red","tls","ssl-cert"],"node-red":{"version":">=2.0.0","nodes":{"TlsCertInfoNode":"TlsCertInfoNode.js"}},"author":{"name":"cappern"},"license":"MIT","bugs":{"url":"https://github.com/cappern/node-red-tls-cert-info/issues"},"homepage":"https://github.com/cappern/node-red-tls-cert-info#readme","gitHead":"1bbf3cb4e05f7acb2c7dcf8150ade2dac53664e3","_id":"@cappern/node-red-tls-cert-info@1.1.3","_nodeVersion":"18.15.0","_npmVersion":"9.5.0","dist":{"integrity":"sha512-hYiFFeIl6/5tmleVMFz2VqjTEh0E8EOiFtBT7NUAvMAXY++gxKLUg610fXFegQVMjav3Jv0tjNPFnO81Ec4dOQ==","shasum":"392501819ae359a0122e671ad567e3f39afacdac","tarball":"https://registry.npmjs.org/@cappern/node-red-tls-cert-info/-/node-red-tls-cert-info-1.1.3.tgz","fileCount":8,"unpackedSize":42958,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD1uJC/UrW/Qp1aeVErvp6UKK1f8WdJykCfR02s4liKMQIgJ1k7eLSv6fi4b3kMBwkGTLUGb5ncUAQ+iLfvJVNb3xE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkSOeUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmojjQ/+LFxROyu/2EunjTO7Y4V0FdOKPiIK4YxRwdHlWei4rjP81WPj\r\nU/bvd6dLzV0/cghnxtY/HZwkAU5mqbFh6ilcTflV6ou4oruU3Rk9ULAM57C4\r\n50WQ0V4oUTztpd8GBJNRTs57lGr3sUhJErpXffKvaqP/qalcSxDhQ2GCsS+v\r\nP8q/UaLP2wCafOUwjPu3McZkDMh8FKYVeyx+dnFZeafJwB80ENQTWLq1Fwtu\r\nnPjUCecyZlXy/zrpOgND9ptKBULM6Byk+TtpDvrUaj7ap6o6VJmV0uB2pHmI\r\nSXK7hJPdZ8Y5+wgBxhMrZ+oY03xBANQMpKNP/58AO8FOjb5+V3qQ1NWwGfnj\r\nLawVgkrW/rSEei5zSTGzisQTN0DM3K4IP+u/HSXV4Oh8DPENTnYR0GIIQid5\r\nuSt35gQPY4ezSAlhIApLhWbr6vd0MaUomy32sgRyUVp+qC5fVvMUmFOu4VlZ\r\n7za5VsLUWE/TYhaZ5Lz1wYsLb5cwhVx/16h7HUoB2yZwqQ66/jz1Soa/JeJH\r\n9csbHs1pbkLhsGbIRlyluaEGRTjF/buekIv3SVaa/rfr59phdd2cInNOqbQg\r\nGsFAzjqzbICD61bd/IjATEI3v+KS2BLJMXyX5+VThnMJ70dVqw756JpHk4o1\r\nFD376rlTZ3cD8BhAFfIdOzAdxGOyLelHYlg=\r\n=lbDg\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"cappern","email":"christoffer@cappelen.org"},"directories":{},"maintainers":[{"name":"cappern","email":"christoffer@cappelen.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/node-red-tls-cert-info_1.1.3_1682499476260_0.939419095343194"},"_hasShrinkwrap":false}},"time":{"created":"2023-04-22T22:31:44.664Z","1.0.0":"2023-04-22T22:31:44.878Z","modified":"2023-04-26T08:57:56.540Z","1.1.1":"2023-04-23T08:43:34.689Z","1.1.2":"2023-04-24T09:12:21.225Z","1.1.3":"2023-04-26T08:57:56.438Z"},"maintainers":[{"name":"cappern","email":"christoffer@cappelen.org"}],"keywords":["node-red","tls","ssl-cert"],"license":"MIT","readme":"# node-red-tls-cert-info\n\nA Node-RED node that retrieves SSL/TLS certificate information from a given host and port.\n\n## Installation\n\nTo install this node, run the following command in your Node-RED user directory:\n\nnpm install @cappern/node-red-tls-cert-info\n\n\n## Usage\n\nThe `tls-cert-info` node retrieves the SSL/TLS certificate information from the given host and port. The certificate details are returned in the `payload` object of the message.\n\n### Inputs\n\n| Property | Type    | Required | Description                                     |\n| -------- | ------- | -------- | ----------------------------------------------- |\n| host     | string  | yes      | Hostname to connect to.                          |\n| port     | integer | no       | Port number to connect to (default is `443`).    |\n| payload  | string  | yes      | The payload of the message to publish.           |\n\n### Outputs\n\n| Property | Type   | Description                                 |\n| -------- | ------ | ------------------------------------------- |\n| payload  | object | Object containing the certificate details.  |\n\nThe `payload` object has the following properties:\n\n| Property      | Type    | Description                                                                      |\n| ------------- | ------- | -------------------------------------------------------------------------------- |\n| subject       | object  | Object containing the details of the subject of the certificate.                |\n| keysize       | integer | The size of the key used in the certificate.                                    |\n| serialnumber  | string  | The serial number of the certificate.                                           |\n| validFrom     | string  | The date and time when the certificate becomes valid.                           |\n| validTo       | string  | The date and time when the certificate expires.                                 |\n| san           | string  | A list of Subject Alternative Names (SANs) present in the certificate.          |\n| pem           | string  | The PEM-formatted certificate.                                                  |\n\n\nThe `hostname` and `port` values can be configured in the node's configuration or set by `msg.host` and `msg.port`, respectively.\n\n### Example Flow\n\nHere is an example flow that retrieves the SSL/TLS certificate information from `www.ferrari.com` and outputs it to the debug console:\n\n![Example screenshot](assets/Example.png)\n\n```json\n[{\"id\":\"d9458ee26e50ecd5\",\"type\":\"inject\",\"z\":\"d2e014450d0e3a4b\",\"name\":\"Start\",\"props\":[{\"p\":\"payload\"},{\"p\":\"topic\",\"vt\":\"str\"}],\"repeat\":\"\",\"crontab\":\"\",\"once\":false,\"onceDelay\":0.1,\"topic\":\"\",\"payload\":\"\",\"payloadType\":\"date\",\"x\":150,\"y\":220,\"wires\":[[\"50d9be476b07daeb\"]]},{\"id\":\"3023f57f560d34c4\",\"type\":\"debug\",\"z\":\"d2e014450d0e3a4b\",\"name\":\"Output SSL-CERT\",\"active\":true,\"tosidebar\":true,\"console\":false,\"tostatus\":false,\"complete\":\"payload\",\"targetType\":\"msg\",\"statusVal\":\"\",\"statusType\":\"auto\",\"x\":830,\"y\":220,\"wires\":[]},{\"id\":\"50d9be476b07daeb\",\"type\":\"change\",\"z\":\"d2e014450d0e3a4b\",\"name\":\"\",\"rules\":[{\"t\":\"set\",\"p\":\"host\",\"pt\":\"msg\",\"to\":\"www.ferrari.com\",\"tot\":\"str\"}],\"action\":\"\",\"property\":\"\",\"from\":\"\",\"to\":\"\",\"reg\":false,\"x\":370,\"y\":220,\"wires\":[[\"481470c97bd45b0d\"]]},{\"id\":\"5590eabc990e75f9\",\"type\":\"comment\",\"z\":\"d2e014450d0e3a4b\",\"name\":\"Set Params\",\"info\":\"\",\"x\":370,\"y\":160,\"wires\":[]},{\"id\":\"a2090b54dbf45c3e\",\"type\":\"comment\",\"z\":\"d2e014450d0e3a4b\",\"name\":\"Get Certificate\",\"info\":\"\",\"x\":590,\"y\":160,\"wires\":[]},{\"id\":\"22f6d42603cf75ed\",\"type\":\"comment\",\"z\":\"d2e014450d0e3a4b\",\"name\":\"Output Result\",\"info\":\"\",\"x\":810,\"y\":160,\"wires\":[]},{\"id\":\"481470c97bd45b0d\",\"type\":\"tls-cert-info\",\"z\":\"d2e014450d0e3a4b\",\"name\":\"\",\"x\":590,\"y\":220,\"wires\":[[\"3023f57f560d34c4\"]]}]\n```\n\n## References\n\n- [Node-RED](https://nodered.org/)\n- [SSL/TLS](https://en.wikipedia.org/wiki/Transport_Layer_Security)\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","readmeFilename":"README.md","description":"A Node-RED node that retrieves SSL/TLS certificate information from a given host and port.","homepage":"https://github.com/cappern/node-red-tls-cert-info#readme","repository":{"type":"git","url":"git+https://github.com/cappern/node-red-tls-cert-info.git"},"author":{"name":"cappern"},"bugs":{"url":"https://github.com/cappern/node-red-tls-cert-info/issues"}}